mirror of https://github.com/bjornbytes/lovr.git
Improve error messages in main.lua;
This commit is contained in:
parent
125e2d0e13
commit
b3cd1a103e
|
@ -85,8 +85,7 @@ void lovrRun(lua_State* L, char* root) {
|
|||
|
||||
// Run "main.lua" which will override/define pieces of lovr
|
||||
if (fileExists(path) && luaL_dofile(L, path)) {
|
||||
error("Failed to run main.lua");
|
||||
lua_pop(L, 1);
|
||||
lovrOnLuaError(L);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue