You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When puppeteer is used as a dependency or sub-dependency of another project that exposes the puppeteer API, an invalid executablePath option should be reported appropriately. Currently, if an invalid executablePath is provided to puppeteer.launch(...), it is unclear where the actual error is coming from. It could be from any module. This error should be propagated with a stack trace directly from puppeteer. I have a fix for this and I will put up a PR momentarily.
An error containing a stack trace clearly describing the issue e.g.
Error: Error launching Chromium process with executable path "random-path"
at fs.stat (/puppeteer/lib/Launcher.js:147:23)
at FSReqWrap.oncomplete (fs.js:152:21)
What happens instead?
events.js:182
throw er; // Unhandled 'error' event
^
Error: spawn random-path ENOENT
at exports._errnoException (util.js:1016:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
at onErrorNT (internal/child_process.js:366:16)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
The text was updated successfully, but these errors were encountered:
When
puppeteer
is used as a dependency or sub-dependency of another project that exposes thepuppeteer
API, an invalidexecutablePath
option should be reported appropriately. Currently, if an invalidexecutablePath
is provided topuppeteer.launch(...)
, it is unclear where the actual error is coming from. It could be from any module. This error should be propagated with a stack trace directly frompuppeteer
. I have a fix for this and I will put up a PR momentarily.Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
await puppeteer.launch({ executablePath: 'random-path' })
What is the expected result?
An error containing a stack trace clearly describing the issue e.g.
What happens instead?
The text was updated successfully, but these errors were encountered: