From f1ac51ad918d4cd8764d210ce285b1bdcfc07cb0 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Tue, 26 Jan 2021 00:13:54 -0800
Subject: [PATCH] throw Error's not Strings, makes debugging nested scripts
 *much* easier

---
 exec/load/sbbsini.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/load/sbbsini.js b/exec/load/sbbsini.js
index 3171a16b54..3831aa5cba 100644
--- a/exec/load/sbbsini.js
+++ b/exec/load/sbbsini.js
@@ -102,7 +102,7 @@ new function() {
 
 	var f = new File(file_cfgname(system.ctrl_dir, "sbbs.ini"));
 	if (!f.open("r", true))
-		throw("Unable to open "+f.name);
+		throw new Error("Unable to open "+f.name);
 	this.bbs = {};
 	this.ftp = {};
 	this.web = {};
-- 
GitLab