Skip to content

Commit

Permalink
use always to write exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-GSteen committed Dec 22, 2023
1 parent 09a37a6 commit 0af07d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "SOOS",
"publisher": "SOOS",
"license": "MIT",
"version": "1.0.12",
"version": "1.0.13",
"main": "dist/index.js",
"scripts": {
"setup:install": "npm install",
Expand All @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/soos-io/soos-csa#readme",
"dependencies": {
"@soos-io/api-client": "0.2.24",
"@soos-io/api-client": "0.2.25",
"argparse": "^2.0.1",
"glob": "^10.3.10",
"tslib": "^2.6.2"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class SOOSCSAAnalysis {
this.args.integrationName,
this.args.onFailure,
);
soosLogger.debug(`Exiting with code ${exitCode}`);
soosLogger.always(`exit ${exitCode}`);
exit(exitCode);
} catch (error) {
if (projectHash && branchHash && analysisId)
Expand All @@ -192,6 +192,7 @@ class SOOSCSAAnalysis {
message: `Error while performing scan.`,
});
soosLogger.error(error);
soosLogger.always("exit 1");
exit(1);
}
}
Expand Down

0 comments on commit 0af07d1

Please sign in to comment.