thread exceptions are printed unscrambled
This commit is contained in:
1 parent
c476e814b4
commit
9e7d6b70b7
4 files changed
+4
-4
No files matched your search
@@ -1067,7 +1067,7 @@ public class CarpetScriptHost extends ScriptHost
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleExpressionException(String message, ExpressionException exc)
|
||||
synchronized public void handleExpressionException(String message, ExpressionException exc)
|
||||
{
|
||||
handleErrorWithStack(message, new CarpetExpressionException(exc.getMessage(), exc.stack));
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ public abstract class ScriptHost
|
||||
host.moduleData.forEach((module, data) -> data.setImportsBasedOn(host, this.moduleData.get(data.parent)));
|
||||
}
|
||||
|
||||
public void handleExpressionException(String msg, ExpressionException exc)
|
||||
synchronized public void handleExpressionException(String msg, ExpressionException exc)
|
||||
{
|
||||
System.out.println(msg+": "+exc);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ public class ExpressionException extends RuntimeException implements ResolvedExc
|
||||
return errMsg;
|
||||
};
|
||||
|
||||
static String makeMessage(Context c, Expression e, Tokenizer.Token t, String message) throws ExpressionException
|
||||
synchronized static String makeMessage(Context c, Expression e, Tokenizer.Token t, String message) throws ExpressionException
|
||||
{
|
||||
if (c.host.errorSnooper != null)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ThreadValue extends Value
|
||||
}
|
||||
catch (ExpressionException exc)
|
||||
{
|
||||
ctx.host.handleExpressionException("Thread failed", exc);
|
||||
ctx.host.handleExpressionException("Thread failed\n", exc);
|
||||
return Value.NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user