Log raised during error handling
It was logging the parsing exception, not the exception that could
occur while handling the parsing error due to a bug in the implementation.
@@ -86,7 +86,7 @@ class ErrorHandler
message = String.format("mismatched input '%s'. Expecting: %s", ((Token) offendingSymbol).getText(), expected);
}
catch (Exception exception) {
- LOG.error(e, "Unexpected failure when handling parsing error. This is likely a bug in the implementation");
+ LOG.error(exception, "Unexpected failure when handling parsing error. This is likely a bug in the implementation");
}
throw new ParsingException(message, e, line, charPositionInLine);
