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) ...@@ -79,18 +79,18 @@ function run_tests(location, obj)
chdir(js.exec_dir); chdir(js.exec_dir);
if (result instanceof Error) { if (result instanceof Error) {
tfailed = true; tfailed = true;
fail_msg = e; fail_msg = e.toString();
log("Caught: "+result); log("Caught: "+result);
} }
} }
catch(e) { catch(e) {
tfailed = true; tfailed = true;
fail_msg = e; fail_msg = e.toString();
log("Caught: "+e); log("Caught: "+e);
} }
if (tfailed) { if (tfailed) {
stdout.writeln("FAILED!"); stdout.writeln("FAILED!");
stdout.writeln(e); stdout.writeln(fail_msg);
stdout.writeln(""); stdout.writeln("");
failed++; failed++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment