Skip to content

Commit

Permalink
Emit error if api is not stopped and exit code is greater than zero (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
liza-mae authored Aug 22, 2018
1 parent a913683 commit 00c0478
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function createLocalBrowserDriverApi(log, url, browser) {
});

proc.on('exit', (code) => {
if (!api.isStopped() || code > 0) {
if (!api.isStopped() && code > 0) {
api.emit('error', new Error(driverName + ` exited with code ${code}`));
}
});
Expand Down

0 comments on commit 00c0478

Please sign in to comment.