From c88cba186cce1ac03749fa3819da738ae3e78b2f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 23 Dec 2013 23:48:35 -0500 Subject: [PATCH] Use luaFatal() if luaL_dofile() explodes. --- 1pass.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/1pass.c b/1pass.c index 8f536ba..60278a7 100644 --- a/1pass.c +++ b/1pass.c @@ -366,12 +366,7 @@ static int initLua(const int argc, char **argv) // Transfer control to Lua... if (luaL_dofile(luaState, "1pass.lua") != 0) - { - const char *msg = lua_tostring(luaState, -1); - fprintf(stderr, "1pass.lua didn't run: %s\n", msg); - lua_pop(luaState, 1); - return 0; - } // if + luaFatal(luaState); return 1; } // initLua