Commits

Jason Perkins  committed febfc92

Patch 3441850: Use debug.traceback() as error handler (Konstantin Tokarev)

  • Participants
  • Parent commits 01ad2e1

Comments (0)

Files changed (2)

 * Patch 3476176: Remove conditionals from makefile compiler assignments (Konstantin Tokarev)
 * Pull 1: Fixed path to Info.plist in Xcode projects (Adrien Anselme)
 * Patch 3367642: Add support for targetextension property to Xcode
+* Patch 3435716: Fix for PS3 config generation in VS2010 (Jake)
+* Patch 3441850: Use debug.traceback() as error handler (Konstantin Tokarev)
 
 
 -------

File src/host/premake.c

 		return !OKAY;
 	}
 
+	/* in debug mode, 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");
 	lua_pushstring(L, scripts_path);
-	if (lua_pcall(L, 1, 1, 0) != OKAY)
+	if (lua_pcall(L, 1, 1, -3) != OKAY)
 	{
 		printf(ERROR_MESSAGE, lua_tostring(L, -1));
 		return !OKAY;