commit cafb33d5f0b5eedac444e410fa2ae1e500e7c6ea
parent eaede95bac98194a74eae342aabd6046117584a6
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 19 May 2026 21:21:56 +0100
die
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/luad.c b/luad.c
@@ -90,8 +90,7 @@ int start_lua_child(lua_State *L,
lua_setglobal(L, "arg");
int status = luaL_dofile(L, pathname);
if (status) {
- fprintf(stderr, "Error: %s\n", lua_tostring(L, -1));
- return 1;
+ die("Lua error: %s", lua_tostring(L, -1));
} else {
return 0;
}