Skip to content

Commit 1a6422c

Browse files
committed
Update AnnotationProcessor.cs
1 parent 80f982e commit 1a6422c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SymbolGenerator/Parsing/Annotations/AnnotationProcessor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void ProcessAndResolve(IEnumerable<RawAnnotation> annotations)
4747
}
4848
catch (Exception ex)
4949
{
50-
Logger.Warn($"Failed to resolve annotation '{annotation}' at {annotation.Annotation.Location}: {ex.Message}");
50+
Logger.Warn($"Failed to resolve annotation '{annotation}': {ex.Message}", annotation.Annotation.Location);
5151
}
5252
}
5353
}
@@ -71,12 +71,12 @@ private void Process(RawAnnotation annotation)
7171
}
7272
catch (UnhandledAnnotationException ex)
7373
{
74-
Logger.Warn($"Skipping annotation '{annotation}' at {annotation.Location}: {ex.Message}");
74+
Logger.Warn($"Skipping annotation '{annotation}': {ex.Message}", annotation.Location);
7575
return;
7676
}
7777
catch (Exception ex)
7878
{
79-
Logger.Warn($"Skipping annotation '{annotation}' at {annotation.Location}: {ex.InnerException?.Message}");
79+
Logger.Warn($"Skipping annotation '{annotation}': {ex.InnerException?.Message}", annotation.Location);
8080
return;
8181
}
8282

0 commit comments

Comments
 (0)