|
@@ -20,9 +20,9 @@ public class SnuviScript
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void printException(Exception ex)
|
|
|
+ public void printException(Exception ex, String s, int line)
|
|
|
{
|
|
|
- System.out.println("Exception " + ex);
|
|
|
+ System.out.println("Exception " + ex + " " + s + " " + line);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -79,19 +79,7 @@ public class SnuviScript
|
|
|
}
|
|
|
sb.append("debug(wusi);");*/
|
|
|
|
|
|
- String s = "debug(\"Das ist ein test\");\n" +
|
|
|
-"if(5 < 6)\n" +
|
|
|
-"{\n" +
|
|
|
-" debug(\"hehe\");\n" +
|
|
|
-"}\n" +
|
|
|
-"else\n" +
|
|
|
-"{\n" +
|
|
|
-" deb.ug(\"muhahah\");\n" +
|
|
|
-" debug(\"ich bin auch da\");\n" +
|
|
|
-"}\n" +
|
|
|
-"{\n" +
|
|
|
-"debug(\"wir sind fertig\");\n" +
|
|
|
-"}";
|
|
|
+ String s = "debug(catcher);";
|
|
|
//System.out.println(s);
|
|
|
//System.out.println("___________");
|
|
|
//parser.startScript(Script.class, "test", sb.toString(), true);
|
|
@@ -102,7 +90,7 @@ public class SnuviScript
|
|
|
catch(PreScriptException ex)
|
|
|
{
|
|
|
//ex.printStackTrace();
|
|
|
- logger.printException(ex);
|
|
|
+ logger.printException(ex, "test", ex.getLine());
|
|
|
}
|
|
|
//parser.getScript(0).runCode();
|
|
|
|