diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index 7a58276e6e80796e431f26f3c5720bbc4ecc8299..90d7b5a324792451a813a30982bca0140ebd5603 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -723,6 +723,7 @@ js_require(JSContext *cx, uintN argc, jsval *arglist) ret = js_load(cx, argc-1, arglist); + // TODO: this error is happening if the file doesn't exist! if (!JS_HasProperty(cx, exec_obj, property, &found) || !found) { JSVALUE_TO_MSTRING(cx, argv[fnarg], filename, NULL); JS_ReportError(cx,"symbol '%s' not defined by script '%s'", property, filename);