wdye: don't add the script path on error
All checks were successful
Alpine 3.20 Success
OpenBSD 7.5 Success

Lua already provides this for us, including the line number.
This commit is contained in:
Přemysl Eric Janouch 2025-01-06 14:40:51 +01:00
parent 37a8f16235
commit 914e743dc4
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -1312,7 +1312,7 @@ main (int argc, char *argv[])
if (luaL_loadfile (g.L, path) if (luaL_loadfile (g.L, path)
|| lua_pcall (g.L, 0, 0, -2)) || lua_pcall (g.L, 0, 0, -2))
{ {
print_error ("%s: %s", path, lua_tostring (g.L, -1)); print_error ("%s", lua_tostring (g.L, -1));
lua_pop (g.L, 1); lua_pop (g.L, 1);
lua_close (g.L); lua_close (g.L);
return 1; return 1;