mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed errors caused by love exceptions to give a line number (see issue #772)
This commit is contained in:
@@ -486,7 +486,7 @@ Type luax_type(lua_State *L, int idx);
|
||||
lua_pushstring(L, e.what()); \
|
||||
} \
|
||||
if (should_error) \
|
||||
return lua_error(L); \
|
||||
return luaL_error(L, "%s", lua_tostring(L, -1)); \
|
||||
}
|
||||
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user