From 914e743dc4d0d739a981b58de6eb1d34cea6e0bf Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 6 Jan 2025 14:40:51 +0100 Subject: wdye: don't add the script path on error Lua already provides this for us, including the line number. --- tools/wdye/wdye.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wdye/wdye.c b/tools/wdye/wdye.c index ece3038..ed4f128 100644 --- a/tools/wdye/wdye.c +++ b/tools/wdye/wdye.c @@ -1312,7 +1312,7 @@ main (int argc, char *argv[]) if (luaL_loadfile (g.L, path) || lua_pcall (g.L, 0, 0, -2)) { - print_error ("%s: %s", path, lua_tostring (g.L, -1)); + print_error ("%s", lua_tostring (g.L, -1)); lua_pop (g.L, 1); lua_close (g.L); return 1; -- cgit v1.2.3-70-g09d2