mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
fix(serve): gracefully exit with error instead of panic (#1396)
This commit is contained in:
committed by
GitHub
parent
c169698c95
commit
3dd228e3e3
+1
-1
@@ -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")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user