Skip to content

Commit 68c0230

Browse files
authored
Merge pull request #53 from d3alek/master
Exit with error code on failure
2 parents c4929b8 + d751468 commit 68c0230

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ if (options.mapDbName) {
2020
}
2121

2222
bootstrap(url, source, options, function (error, response) {
23-
if (error) return console.error(error)
23+
if (error) {
24+
process.exitCode = 1
25+
return console.error(error)
26+
}
2427

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

0 commit comments

Comments
 (0)