Skip to content

Commit 2ba960b

Browse files
committed
added logging for parse exception details
1 parent 95ffc36 commit 2ba960b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Parsing/VBA/ComponentParseTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void Start(CancellationToken token)
9292
}
9393
catch (SyntaxErrorException exception)
9494
{
95-
//System.Diagnostics.Debug.Assert(false, "A RecognitionException should be notified of, not thrown as a SyntaxErrorException. This lets the parser recover from parse errors.");
95+
Logger.Warn("Syntax error; offending token '{0}' at line {1}, column {2} in module {3}.", exception.OffendingSymbol.Text, exception.LineNumber, exception.Position, _qualifiedName);
9696
Logger.Error(exception, "Exception thrown in thread {0}, ParseTaskID {1}.", Thread.CurrentThread.ManagedThreadId, _taskId);
9797
var failedHandler = ParseFailure;
9898
if (failedHandler != null)

0 commit comments

Comments
 (0)