Make ErrorSnooper report local's values

This commit is contained in:
altrisi committed 2021-08-31 14:12:05 +02:00
1 parent 9f30c47f19
commit de28982646
3 files changed
+57 -8

No files matched your search

@@ -74,8 +74,8 @@ public class ExpressionException extends RuntimeException implements ResolvedExc
{
if (c.getErrorSnooper() != null)
{
List<String> alternative = c.getErrorSnooper().apply(e, t, message);
if (alternative!= null)
List<String> alternative = c.getErrorSnooper().apply(e, t, c, message);
if (alternative != null)
{
return String.join("\n", alternative);
}