fix: print shutdown error correctly

This commit is contained in:
Elio Bischof 2021-04-07 16:54:53 +02:00
parent f0e1b3076f
commit e8460c3e65
No known key found for this signature in database
GPG key ID: 7B383FDE4DDBF1BD

View file

@ -101,7 +101,7 @@ func StartServer(ctx context.Context, port string) {
defer cancelShutdown()
err := server.Shutdown(ctxShutdown)
if err != nil {
log.Fatalf("Shutdown(): %w", err)
log.Fatalf("Shutdown(): %v", err)
}
}()
}