If a JS script fails to load, it now displays the path
MODIFY
internal/scripting/javascript.go
internal/scripting/javascript.go
@@ -43,7 +43,7 @@ func (engine *JavaScriptEngine) LoadScripts(dirname string) (err error) {
}
_, err = engine.vm.Run(file)
if err != nil {
- return errors.Wrap(err, "failed to run script")
+ return errors.Wrapf(err, "failed to run script '%s'", path)
}
return nil

If a JS script fails to load, it now displays the path