From 894e8198658b14a9a5a5819329b454e8b4bf800d Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 31 Dec 2023 15:42:59 +0500 Subject: [PATCH] Fix newline in LogResult (#245) Fixes an issue on Windows that would cause the `ResultErrorMessage` to be unindented. Signed-off-by: Octol1ttle --- src/Extensions/LoggerExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Extensions/LoggerExtensions.cs b/src/Extensions/LoggerExtensions.cs index 3805cea..9df90b8 100644 --- a/src/Extensions/LoggerExtensions.cs +++ b/src/Extensions/LoggerExtensions.cs @@ -35,6 +35,7 @@ public static class LoggerExtensions return; } - logger.LogWarning("{UserMessage}\n{ResultErrorMessage}", message, result.Error.Message); + logger.LogWarning("{UserMessage}{NewLine}{ResultErrorMessage}", message, Environment.NewLine, + result.Error.Message); } }