diff --git a/private/app/launcher/launcher_unix.go b/private/app/launcher/launcher_unix.go index cb5d3a9758..ef94367abd 100644 --- a/private/app/launcher/launcher_unix.go +++ b/private/app/launcher/launcher_unix.go @@ -18,6 +18,7 @@ package launcher import ( "context" + "errors" "fmt" "os" "path/filepath" @@ -46,7 +47,7 @@ type Application struct { // Run will exit the application if it encounters a fatal error. func (a *Application) Run() { if err := a.run(); err != nil { - fmt.Fprintf(a.getErrorWriter(), "fatal error: %v\n", err) + fmt.Fprintf(a.getErrorWriter(), "fatal error: %v\n %#v\n", err, errors.Unwrap(err)) os.Exit(1) } } diff --git a/private/app/launcher/launcher_windows.go b/private/app/launcher/launcher_windows.go index 577dd3ef60..8058625cc1 100644 --- a/private/app/launcher/launcher_windows.go +++ b/private/app/launcher/launcher_windows.go @@ -19,6 +19,7 @@ package launcher import ( "context" + "errors" "fmt" "os" "path/filepath" @@ -73,7 +74,7 @@ type Application struct { // Run will exit the application if it encounters a fatal error. func (a *Application) Run() { if ec, err := a.run(); err != nil { - fmt.Fprintf(a.getErrorWriter(), "fatal error: %v\n", err) + fmt.Fprintf(a.getErrorWriter(), "fatal error: %v\n %#v\n", err, errors.Unwrap(err)) os.Exit(ec) } }