From 32cad313c3f0168cc890a5dd020d11b980deae8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 12 Feb 2024 12:41:20 -0500
Subject: [PATCH] More fixins to get error message.

---
 exec/tests/test.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/tests/test.js b/exec/tests/test.js
index 4ff87c5e2a..886a140d27 100644
--- a/exec/tests/test.js
+++ b/exec/tests/test.js
@@ -79,14 +79,14 @@ function run_tests(location, obj)
 				chdir(js.exec_dir);
 				if (result instanceof Error) {
 					tfailed = true;
-					fail_msg = e.toString();
+					fail_msg = result.toString();
 					log("Caught: "+result);
 				}
 			}
 			catch(e) {
 				tfailed = true;
 				fail_msg = e.toString();
-				log("Caught: "+e);
+				log("Caught: "+fail_msg);
 			}
 			if (tfailed) {
 				stdout.writeln("FAILED!");
-- 
GitLab