Skip to content

Commit

Permalink
fix: show error message if spawning of appium fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbongard committed Jan 24, 2020
1 parent 8744490 commit 411ad85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/appium-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export class AppiumServer {
logInfo(`Server args: `, startingServerArgs);

this._server = spawn(this._appium, startingServerArgs);
this._server.on('error', (err) => {
console.error('Failed to start appium! Do you have it installed?');
console.error(err);
});
}

public async stop() {
Expand Down

0 comments on commit 411ad85

Please sign in to comment.