Skip to content
Snippets Groups Projects
Commit c5c786be authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Log exceptions to stdout as well as log file.

parent c01bdb5a
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -69,6 +69,7 @@ function run_tests(location, obj)
if (obj.tests !== undefined) {
obj.tests.forEach(function(testscript) {
var tfailed = false;
var fail_msg = '';
try {
var dir = testscript;
......@@ -78,15 +79,18 @@ function run_tests(location, obj)
chdir(js.exec_dir);
if (result instanceof Error) {
tfailed = true;
fail_msg = e;
log("Caught: "+result);
}
}
catch(e) {
tfailed = true;
fail_msg = e;
log("Caught: "+e);
}
if (tfailed) {
stdout.writeln("FAILED!");
stdout.writeln(e);
stdout.writeln("");
failed++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment