Skip to content

Commit

Permalink
#296 dividing logic try catch in order to make each one do a differen…
Browse files Browse the repository at this point in the history
…t thing
  • Loading branch information
Daniel Ventura committed Nov 21, 2022
1 parent a2d0c73 commit 0de9ccd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion copado-function/app/Init.fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,18 @@ async function run() {
Log.info('===================');
Log.info('');
Util.provideMCDevTools();
} catch (ex) {
Log.error('Preparing failed: ' + ex.message);
throw ex;
}
try {
Log.info('');
Log.info('Initializing mcdev tools');
Log.info('===================');
Log.info('');
Copado.mcdevInit(CONFIG.credentials, CONFIG.credentialNameSource, CONFIG.repoUrl);
} catch (ex) {
Log.error('initializing failed: ' + ex.message);
Log.error('Initializing failed: ' + ex.message);
throw ex;
}

Expand Down

0 comments on commit 0de9ccd

Please sign in to comment.