mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Catch exception in lines
This commit is contained in:
@@ -221,7 +221,14 @@ namespace physfs
|
||||
|
||||
int w_lines(lua_State * L)
|
||||
{
|
||||
return instance->lines(L);
|
||||
try
|
||||
{
|
||||
return instance->lines(L);
|
||||
}
|
||||
catch (Exception &e)
|
||||
{
|
||||
return luaL_error(L, e.what());
|
||||
}
|
||||
}
|
||||
|
||||
int w_load(lua_State * L)
|
||||
|
||||
Reference in New Issue
Block a user