diff --git a/src/common/logger.js b/src/common/logger.js index 9fb5f7a..b78cd0e 100644 --- a/src/common/logger.js +++ b/src/common/logger.js @@ -8,7 +8,7 @@ function error(...args) { executeLog( () => { // If this is a Jasmine run, throw loudly. Causing the tests to barf. - throw new Error('Could not complete the test successfully - ', ...args); + throw Error.apply(null, ['Could not complete the test successfully - ', ...args]); }, () => console.error(...args) );