Skip to content

Commit 642c817

Browse files
committed
Changing error message
1 parent 489aaed commit 642c817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Sinks.Console/Sinks/SystemConsole/Rendering/ThemedMessageTemplateRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int RenderPropertyToken(PropertyToken pt, IReadOnlyDictionary<string, LogEventPr
102102

103103
int RenderAlignedPropertyTokenUnbuffered(PropertyToken pt, TextWriter output, LogEventPropertyValue propertyValue)
104104
{
105-
if(pt.Alignment == null) throw new ArgumentException("Invalid PropertyToken State. The PropertyToken should have a Alignment.", nameof(pt));
105+
if(pt.Alignment == null) throw new ArgumentException("The PropertyToken should have a non-null Alignment.", nameof(pt));
106106

107107
var valueOutput = new StringWriter();
108108
RenderValue(NoTheme, _unthemedValueFormatter, propertyValue, valueOutput, pt.Format);

0 commit comments

Comments
 (0)