Fix printing of error stack in rtcbot when a test fails via test.fail().

R=andresp@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/28449004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7134 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
houssainy@google.com 2014-09-10 14:35:35 +00:00
parent 49fa212bcd
commit e0761d06b0

View File

@ -30,7 +30,7 @@ Test.prototype = {
},
abort: function (error) {
var error = error || new Error("Test aborted");
var error = new Error(error || "Test aborted");
console.log(error.stack);
process.exit(1);
},