better reporting

This commit is contained in:
gnembon committed 2021-05-05 01:23:17 -03:00
1 parent 8d97ab26a9
commit 1633cca07a
2 files changed
+3 -11

No files matched your search

@@ -1004,15 +1004,7 @@ public class CarpetScriptHost extends ScriptHost
return null;
}
String shebang = message;
if (expr.module != null)
{
shebang += " in " + expr.module.getName() + "";
}
else
{
shebang += " in system chat";
}
String shebang = message+" in "+expr.getModuleName();
if (token != null)
{
String[] lines = expr.getCodeString().split("\n");