Merge branch 'master' into 1.17
This commit is contained in:
commit
ea660b954f
4 files changed
+4
-4
No files matched your search
@@ -1067,7 +1067,7 @@ public class CarpetScriptHost extends ScriptHost
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleExpressionException(String message, ExpressionException exc)
|
synchronized public void handleExpressionException(String message, ExpressionException exc)
|
||||||
{
|
{
|
||||||
handleErrorWithStack(message, new CarpetExpressionException(exc.getMessage(), exc.stack));
|
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)));
|
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);
|
System.out.println(msg+": "+exc);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public class ExpressionException extends RuntimeException implements ResolvedExc
|
|||||||
return errMsg;
|
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)
|
if (c.host.errorSnooper != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class ThreadValue extends Value
|
|||||||
}
|
}
|
||||||
catch (ExpressionException exc)
|
catch (ExpressionException exc)
|
||||||
{
|
{
|
||||||
ctx.host.handleExpressionException("Thread failed", exc);
|
ctx.host.handleExpressionException("Thread failed\n", exc);
|
||||||
return Value.NULL;
|
return Value.NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user