From 3216ef591cebb0b80b3735e8387306df2d563529 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 15 May 2018 18:04:24 -0700 Subject: [PATCH] Ensure error output from tests is readable --- electron/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/renderer.js b/electron/renderer.js index 5658b24471953..6372901080860 100644 --- a/electron/renderer.js +++ b/electron/renderer.js @@ -270,5 +270,5 @@ function runTests(opts) { ipcRenderer.on('run', (e, opts) => { initLoader(opts); - runTests(opts).catch(err => console.error(err)); + runTests(opts).catch(err => console.error(typeof err === 'string' ? err : JSON.stringify(err))); });