From ffee4df8b78254b89ef09349a3eeb89d1fefb895 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 2 Apr 2025 14:25:11 +1100 Subject: [PATCH] Log to stdout on exit error (#5798) --- cmd/stash/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/stash/main.go b/cmd/stash/main.go index d77786171..86edd6276 100644 --- a/cmd/stash/main.go +++ b/cmd/stash/main.go @@ -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) }