From 5309133a9d9942234fbb4c4df5b7dc710666ff89 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 28 Nov 2021 18:05:20 +0100 Subject: [PATCH] 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` --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 51772fd68..29fab3376 100644 --- a/test/test.js +++ b/test/test.js @@ -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); }); }