Skip to content

Commit

Permalink
add error for failed terra module loads
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Feb 16, 2019
1 parent fcf4d29 commit e48f92d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,7 @@ static int terra_loadmodule(lua_State *L) {

resolved:
if (terra_loadfile(L, modpath.str().c_str())) {
luaL_error(L, "terra module '%s' could not be opened for reading",
modpath.str().c_str());
lua_error(L);
return 0; /* not hit */
}

Expand Down

0 comments on commit e48f92d

Please sign in to comment.