Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/premake.c')
-rwxr-xr-xsrc/host/premake.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/host/premake.c b/src/host/premake.c
index e93754e..8b9d550 100755
--- a/src/host/premake.c
+++ b/src/host/premake.c
@@ -378,9 +378,13 @@ static int load_builtin_scripts(lua_State* L)
}
}
+ /* in release mode, also show full traceback on all errors */
+ lua_getglobal(L, "debug");
+ lua_getfield(L, -1, "traceback");
+
/* hand off control to the scripts */
lua_getglobal(L, "_premake_main");
- if (lua_pcall(L, 0, 1, 0) != OKAY)
+ if (lua_pcall(L, 0, 1, -2) != OKAY)
{
printf(ERROR_MESSAGE, lua_tostring(L, -1));
return !OKAY;