Fix js.exec() error message when specified script can't be found
If the search up the scope tree for js.exec_dir fails, the script 'path' would be left blank leading to a weird error message.
e.g. !JavaScript default.js line 249: Error: Script file () does not exist
In my command shell (custom JS), I have this command to run my file
area chooser:
bbs.exec("?../xtrn/DigDist/AreaChoosers/DDFileAreaChooser.js");
That works. However, I also have a JS script in my sbbs/mods
directory that I use as a test sandbox to try out new things, which I
usually run from my main menu. I tried using the same line above in
my test script to run my DDFileAreaChooser.js, but when I run that, I
get the error:
!JavaScript DigitalDistortionTest.js line 8: Error: Script file ()
does not
exist
That error message looks to be from js.exec(), not bbs.exec(). The error message itself (the empty parens) was fixed in git today. It doesn't appear you have that fix.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 179:52:37 |
Calls: | 332 |
Files: | 5,901 |
Messages: | 231,090 |