Skip to content

Commit

Permalink
Change error prefix in C code from "ERROR" to "PANIC"
Browse files Browse the repository at this point in the history
That's what Lua use for this kind of error.
  • Loading branch information
jirutka committed Jul 18, 2017
1 parent f9bc007 commit 47abd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luapak/wrapper_tmpl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static int pushargs (lua_State *L) {
int main (int argc, char *argv[]) {
lua_State *L = luaL_newstate();
if (L == NULL) {
lua_writestringerror("%s\n", "ERROR: not enough memory");
lua_writestringerror("%s\n", "PANIC: not enough memory");
return EXIT_FAILURE;
}

Expand Down

0 comments on commit 47abd84

Please sign in to comment.