Skip to content
Snippets Groups Projects
Commit a6860b83 authored by rswindell's avatar rswindell
Browse files

Bug-fix: report JS script compilation errors (exceptions) immediately.

parent a113d4ee
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -623,6 +623,7 @@ long sbbs_t::js_execfile(const char *cmd) ...@@ -623,6 +623,7 @@ long sbbs_t::js_execfile(const char *cmd)
} }
if(js_scope==NULL || js_script==NULL) { if(js_scope==NULL || js_script==NULL) {
JS_ReportPendingException(js_cx); /* Added Feb-2-2006, rswindell */
errormsg(WHERE,ERR_EXEC,path,0); errormsg(WHERE,ERR_EXEC,path,0);
return(-1); return(-1);
} }
......
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