From ccb6843144487cef33babaa7f934b63b3a3ecb53 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 22 Jun 2015 14:01:16 +0200 Subject: [PATCH] Call `warn` in case of errors in luaA_spawn This is useful to have, as it might indicate a missing program etc. --- spawn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spawn.c b/spawn.c index 987f3e1f..b3dcf9b8 100644 --- a/spawn.c +++ b/spawn.c @@ -362,6 +362,7 @@ luaA_spawn(lua_State *L) g_strfreev(argv); /* push error on stack */ lua_pushfstring(L, "spawn: parse error: %s", error->message); + warn("%s", lua_tostring(L, -1)); g_error_free(error); return 1; } @@ -388,6 +389,7 @@ luaA_spawn(lua_State *L) { /* push error on stack */ lua_pushstring(L, error->message); + warn("%s", lua_tostring(L, -1)); g_error_free(error); if(context) sn_launcher_context_complete(context);