[NOTHING CHANGED] Assorted fixes #48

Closed
asiekierka wants to merge 61 commits from asiekierka/master into master
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 5d3f2eb72c - Show all commits

View File

@@ -548,7 +548,7 @@ public class LuaClosure extends LuaFunction {
private void processErrorHooks(LuaError le, Prototype p, int pc) {
le.fileline = (p.source != null? p.source.tojstring(): "?") + ":"
+ (p.lineinfo != null && pc >= 0 && pc < p.lineinfo.length? String.valueOf(p.lineinfo[pc]): "?");
+ (p.lineinfo != null && pc >= 0 && pc < p.lineinfo.length? String.valueOf(p.lineinfo[pc]): "?") + ": ";
le.traceback = errorHook(le.getMessage(), le.level);
}

View File

@@ -61,7 +61,7 @@ public class LuaError extends RuntimeException {
if (m == null)
return null;
if (fileline != null)
return fileline + " " + m;
return fileline + m;
return m;
}