Browse Source

format stacktrace

Kajetan Johannes Hammerle 4 years ago
parent
commit
bcb3f0c557
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/me/hammerle/snuviscript/exceptions/StackTrace.java

+ 1 - 1
src/me/hammerle/snuviscript/exceptions/StackTrace.java

@@ -8,7 +8,7 @@ public class StackTrace {
 
     public StackTrace(int currentLine, Stack<Integer> stack, Instruction[] code) {
         if(stack == null || code == null) {
-            stackTrace = String.valueOf(currentLine);
+            stackTrace = String.format("%d(%d)", currentLine & 0xFFFFFF, (currentLine >> 24) & 0xFF);
             return;
         }
         StringBuilder sb = new StringBuilder();