diff options
Diffstat (limited to 'js/test/Common/TestRunner.js')
-rw-r--r-- | js/test/Common/TestRunner.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/js/test/Common/TestRunner.js b/js/test/Common/TestRunner.js index 75a960644ed..a1f51d19440 100644 --- a/js/test/Common/TestRunner.js +++ b/js/test/Common/TestRunner.js @@ -21,7 +21,7 @@ function isSafari() function isWorker() { - return typeof(WorkerGlobalScope) !== 'undefined' && this instanceof WorkerGlobalScope; + return typeof(WorkerGlobalScope) !== 'undefined' && this instanceof WorkerGlobalScope; } function runTest(name, language, defaultHost, protocol, configurations, out) @@ -86,7 +86,8 @@ function runTest(name, language, defaultHost, protocol, configurations, out) var initData = id.clone(); if(configuration.args !== undefined) { - initData.properties = Ice.createProperties(configuration.args, id.properties); + initData.properties = + Ice.createProperties(configuration.args, id.properties); } return __test__(out, initData); }); @@ -154,10 +155,18 @@ function runTest(name, language, defaultHost, protocol, configurations, out) { out.writeLine("exception occurred in call to " + r.operation); } - out.writeLine(ex.toString()); - if(ex.stack) + if(ex instanceof Test.Common.ServerFailedException) { - out.writeLine(ex.stack); + out.writeLine("Server failed to start:\n"); + out.writeLine(ex.reason); + } + else + { + out.writeLine(ex.toString()); + if(ex.stack) + { + out.writeLine(ex.stack); + } } return false; }); |