Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Propagate browserstack local startup errors #22

Merged
merged 1 commit into from
May 4, 2018

Conversation

gpittarelli
Copy link
Contributor

@gpittarelli gpittarelli commented May 1, 2018

browserstackLocal.start and .stop can both fail and they return an error in the standard nodejs callback style (for example: https://github.com/browserstack/browserstack-local-nodejs/blob/ab32965aa6b22c95b256a3c9011f5f53324e7e2c/lib/Local.js#L57). Currently this service silently ignores those errors, causing WDIO to keep going before eventually throwing errors downstream. This PR checks for those errors and propagates them to WDIO via the returned promise.

@gpittarelli gpittarelli force-pushed the master branch 2 times, most recently from a0142de to 64b45ab Compare May 1, 2018 20:52
@itszero
Copy link
Owner

itszero commented May 4, 2018

Thanks for the help! Merged and will be releasing a new version soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants