diff --git a/NEWS b/NEWS index 016c7129..a1e30838 100644 --- a/NEWS +++ b/NEWS @@ -58,6 +58,8 @@ Miscellaneous: (OpenSSL replacement). * enhancement: Scrolling the entire contents of dialog boxes. Especially useful for multi-file BitTorrent downloads. +* Report if the Lua function edit_bookmark_dialog receives the wrong + number or types of arguments instead of silently failing. ////////////////////////////////////////////////////////////////////// The following changes should be removed from NEWS before ELinks 0.13.0 diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c index 8aec3a91..0700cc98 100644 --- a/src/scripting/lua/core.c +++ b/src/scripting/lua/core.c @@ -369,6 +369,7 @@ l_edit_bookmark_dialog(LS) if (!lua_isstring(S, 1) || !lua_isstring(S, 2) || !lua_isstring(S, 3) || !lua_isfunction(S, 4)) { + alert_lua_error("bad arguments to edit_bookmark_dialog"); lua_pushnil(S); return 1; }