Skip to content

Commit

Permalink
Fixes to ensure code adheres to latest standardjs version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaridmargolin committed Apr 16, 2017
1 parent b9e1575 commit f697f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const inspectCliOptions = {
}

// early parse in order to show inspect specific help options
// eslint-disable-next-line no-unused-expressions
yargs.options(inspectCliOptions)
.usage('\nUsage:\ninspect [inspect options] [node options] [v8 options] [script] [arguments]')
.version()
Expand Down
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const inspectProcess = function (cmd, options, devtools) {
}

const resolveWithResult = function () {
return proc.exitCode ? reject() : resolve()
return proc.exitCode
? reject(new Error('Process exited with a non 0 exitCode.'))
: resolve()
}

proc.stdout.on('data', (data) => {
Expand Down

0 comments on commit f697f6d

Please sign in to comment.