Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
fix: add null check (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio authored Oct 3, 2019
1 parent 986c2b5 commit 6623f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum_clients/ControlledProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ControlledProcess extends EventEmitter {
this.emit('newState', 'stopped')
}

if (code !== 0) {
if (code && code !== 0) {
// Closing with any code other than 0 means there was an error
const errorMessage = `${this.name} child process exited with code: ${code}`
this.emitPluginError(errorMessage)
Expand Down

0 comments on commit 6623f97

Please sign in to comment.