forked from TeamInklings/Octobot
Fix newline in LogResult (#245)
Fixes an issue on Windows that would cause the `ResultErrorMessage` to be unindented. Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
3134c35751
commit
894e819865
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ public static class LoggerExtensions
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.LogWarning("{UserMessage}\n{ResultErrorMessage}", message, result.Error.Message);
|
logger.LogWarning("{UserMessage}{NewLine}{ResultErrorMessage}", message, Environment.NewLine,
|
||||||
|
result.Error.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue