Skip to content

Commit

Permalink
Merge pull request #53 from d3alek/master
Browse files Browse the repository at this point in the history
Exit with error code on failure
  • Loading branch information
jo authored Jan 27, 2021
2 parents c4929b8 + d751468 commit 68c0230
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ if (options.mapDbName) {
}

bootstrap(url, source, options, function (error, response) {
if (error) return console.error(error)
if (error) {
process.exitCode = 1
return console.error(error)
}

console.log(JSON.stringify(response, null, ' '))
})

0 comments on commit 68c0230

Please sign in to comment.