Skip to content

Commit c0abb4a

Browse files
committed
Include argument name when throwing ArgumentException
1 parent bc089db commit c0abb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Sinks.File/FileLoggerConfigurationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static LoggerConfiguration ConfigureFile(
183183
#endif
184184

185185
if (buffered)
186-
throw new ArgumentException("Buffered writes are not available when file sharing is enabled.");
186+
throw new ArgumentException("Buffered writes are not available when file sharing is enabled.", nameof(buffered));
187187
}
188188

189189
ILogEventSink sink;

0 commit comments

Comments
 (0)