Skip to content

Commit

Permalink
When monitor command fails, raise it and not only log it
Browse files Browse the repository at this point in the history
Otherwise the caller does not know that the command failed.
  • Loading branch information
marusak committed Jan 7, 2020
1 parent 862aaa7 commit bd118e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function monitor(name, args, callback, on_close, system) {
if (e.name === "ConnectionClosed")
on_close(system);
else
console.log(e);
return Promise.reject(e);
});
}

Expand Down

0 comments on commit bd118e7

Please sign in to comment.