Skip to content

Commit

Permalink
fix: print error output if no data are present
Browse files Browse the repository at this point in the history
Signed-off-by: GridexX <[email protected]>
  • Loading branch information
GridexX committed Mar 3, 2023
1 parent f3d87be commit df90af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sarif-codeclimate",
"version": "2.1.1",
"version": "2.1.2",
"description": "Convert your SARIF output into a readable JSON compatible with GitLab Code Climate Tool",
"main": "out/lib/converter.js",
"bin": {
Expand Down
2 changes: 2 additions & 0 deletions src/bin/sarif-codeclimate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ program
} catch (error) {
console.log(red('Error while writing the output file'));
}
} else {
console.log(red('No data to write'));
}

// Display errors from the parser if debug mode is enabled
Expand Down

0 comments on commit df90af6

Please sign in to comment.