mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Generalise the error message from smjs_do_file by dropping 'default'
from 'error loading default script file'.
This commit is contained in:
parent
b52a29f8c0
commit
a4be153703
@ -81,7 +81,7 @@ smjs_do_file(unsigned char *path)
|
|||||||
|| JS_FALSE == JS_EvaluateScript(smjs_ctx,
|
|| JS_FALSE == JS_EvaluateScript(smjs_ctx,
|
||||||
JS_GetGlobalObject(smjs_ctx),
|
JS_GetGlobalObject(smjs_ctx),
|
||||||
script.source, script.length, path, 1, &rval)) {
|
script.source, script.length, path, 1, &rval)) {
|
||||||
alert_smjs_error("error loading default script file");
|
alert_smjs_error("error loading script file");
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user