mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix(serve): gracefully exit with error instead of panic (#1396)
This commit is contained in:
parent
c169698c95
commit
3dd228e3e3
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue