mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Catch some more file-opening exceptions and make them lua errors instead
This commit is contained in:
@@ -218,7 +218,12 @@ namespace physfs
|
||||
|
||||
int w_load(lua_State * L)
|
||||
{
|
||||
return instance->load(L);
|
||||
try {
|
||||
return instance->load(L);
|
||||
}
|
||||
catch (love::Exception & e) {
|
||||
return luaL_error(L, e.what());
|
||||
}
|
||||
}
|
||||
|
||||
int w_getLastModified(lua_State * L)
|
||||
|
||||
Reference in New Issue
Block a user