Catch some more file-opening exceptions and make them lua errors instead

This commit is contained in:
Bart van Strien
2011-02-18 16:10:20 +01:00
parent b337846b2b
commit 453593c9b0
2 changed files with 14 additions and 2 deletions
@@ -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)