wdye: don't add the script path on error
Lua already provides this for us, including the line number.
This commit is contained in:
parent
37a8f16235
commit
914e743dc4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user