Improve error messages in main.lua;

This commit is contained in:
bjorn 2016-10-24 13:39:09 -07:00
parent 125e2d0e13
commit b3cd1a103e
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}