We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc44d0 commit 1754f08Copy full SHA for 1754f08
1 file changed
cmd/tcld/fx.go
@@ -34,7 +34,10 @@ func fxOptions() fx.Option {
34
if err != nil {
35
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
36
}
37
- return shutdowner.Shutdown()
+ if shutdownErr := shutdowner.Shutdown(); shutdownErr != nil {
38
+ fmt.Fprintf(os.Stderr, "failed to shutdown app: %s\n", shutdownErr.Error())
39
+ }
40
+ return err
41
}),
42
fx.NopLogger,
43
)
0 commit comments