Skip to content

Commit

Permalink
print a message if unable to initialize lua engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmaclarty committed Feb 4, 2020
1 parent a447060 commit d6b7934
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/am_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ am_engine *am_init_engine(bool worker, int argc, char** argv) {
lua_State *L = lua_newstate(&am_alloc, allocator);
#endif
if (L == NULL) {
fprintf(stderr, "unable to initialize lua engine\n");
am_destroy_allocator(allocator);
return NULL;
}
Expand Down

0 comments on commit d6b7934

Please sign in to comment.