mirror of https://github.com/bjornbytes/lovr.git
Improve error messages when main.lua has error;
This commit is contained in:
parent
acde08228c
commit
36bc1ad9a2
|
@ -89,7 +89,7 @@ void lovrInit(lua_State* L, int argc, char** argv) {
|
|||
" end "
|
||||
"end "
|
||||
|
||||
"pcall(require, 'main')"
|
||||
"require('main')"
|
||||
);
|
||||
|
||||
if (luaL_dostring(L, buffer)) {
|
||||
|
|
Loading…
Reference in New Issue