fix(serve): gracefully exit with error instead of panic (#1396)

This commit is contained in:
Ramkumar Chinchani
2023-04-30 22:26:23 -07:00
committed by GitHub
parent c169698c95
commit 3dd228e3e3
+1 -1
View File
@@ -68,7 +68,7 @@ func newServeCmd(conf *config.Config) *cobra.Command {
}
if err := ctlr.Run(reloaderCtx); err != nil {
panic(err)
log.Fatal().Err(err).Msg("unable to start controller, exiting")
}
},
}