Revert change that removed default traceback in debug builds.

This commit is contained in:
James Roseborough
2015-04-23 03:25:30 +00:00
parent cdc33ab5b6
commit 4c3d0f9cdd
2 changed files with 3 additions and 2 deletions

View File

@@ -522,7 +522,9 @@ public class LuaClosure extends LuaFunction {
if (globals == null ) return msg;
final LuaThread r = globals.running;
if (r.errorfunc == null)
return msg;
return globals.debuglib != null?
msg + "\n" + globals.debuglib.traceback(level):
msg;
final LuaValue e = r.errorfunc;
r.errorfunc = null;
try {