mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix browser error logging in test/test.js
If a browser cannot be started, we currently get the following log: `Error while starting firefox: [object Object]`. This is simply an oversight from the initial Puppeteer integration work since we never got into this code path before. With this fix the error log becomes more useful: `Error while starting firefox: connect ECONNREFUSED ::1:45387`
This commit is contained in:
parent
c14552874b
commit
5309133a9d
1 changed files with 1 additions and 1 deletions
|
@ -975,7 +975,7 @@ function startBrowsers(initSessionCallback, makeStartUrl = null) {
|
|||
}
|
||||
})
|
||||
.catch(function (ex) {
|
||||
console.log(`Error while starting ${browserName}: ${ex}`);
|
||||
console.log(`Error while starting ${browserName}: ${ex.message}`);
|
||||
closeSession(browserName);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue