Log to stdout on exit error (#5798)

This commit is contained in:
WithoutPants
2025-04-02 14:25:11 +11:00
committed by GitHub
parent 2d5160c576
commit ffee4df8b7

View File

@@ -152,6 +152,9 @@ func recoverPanic() {
func exitError(err error) {
exitCode = 1
logger.Error(err)
// #5784 - log to stdout as well as the logger
// this does mean that it will log twice if the logger is set to stdout
fmt.Println(err)
if desktop.IsDesktop() {
desktop.FatalError(err)
}