gplugin/gplugin

Print out the error if testing for lgi failed.

2021-03-11, Elliott Sales de Andrade
2dedd64d03b9
Parents 3075aaa51b17
Children 11c702036a0a
Print out the error if testing for lgi failed.

This will be swallowed by Meson, so is not noisy, but will appear in the logs
for easier debugging.

Testing Done:
Compiled in mingw, which has some path issues with Lua, which can now be found in the error in the logs.

Reviewed at https://reviews.imfreedom.org/r/569/
--- a/lua/gplugin-lua-test-lgi.c Tue Jan 26 01:26:06 2021 -0600
+++ b/lua/gplugin-lua-test-lgi.c Thu Mar 11 22:59:20 2021 -0600
@@ -66,6 +66,9 @@
lua_pushstring(L, "lgi");
ret = lua_pcall(L, 1, 1, 0);
+ if (ret != 0) {
+ fprintf(stderr, "%s\n", lua_tostring(L, -1));
+ }
return ret;
}