diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/errno/cli.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/errno/cli.js')
-rwxr-xr-x | node_modules/errno/cli.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/errno/cli.js b/node_modules/errno/cli.js index f841771b8..61d179bbe 100755 --- a/node_modules/errno/cli.js +++ b/node_modules/errno/cli.js @@ -4,8 +4,10 @@ var errno = require('./') , arg = process.argv[2] , data, code -if (arg === undefined) - return console.log(JSON.stringify(errno.code, null, 2)) +if (arg === undefined) { + console.log(JSON.stringify(errno.code, null, 2)) + process.exit(0) +} if ((code = +arg) == arg) data = errno.errno[code] @@ -17,4 +19,4 @@ if (data) else { console.error('No such errno/code: "' + arg + '"') process.exit(1) -}
\ No newline at end of file +} |