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

Log fail_msg, not the out-of-scope e.

Hopefully, we'll find out why the random test fails sometimes...
parent a281a7d9
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -79,18 +79,18 @@ function run_tests(location, obj)
chdir(js.exec_dir);
if (result instanceof Error) {
tfailed = true;
fail_msg = e;
fail_msg = e.toString();
log("Caught: "+result);
}
}
catch(e) {
tfailed = true;
fail_msg = e;
fail_msg = e.toString();
log("Caught: "+e);
}
if (tfailed) {
stdout.writeln("FAILED!");
stdout.writeln(e);
stdout.writeln(fail_msg);
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