0
Fork 0
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:
Ramkumar Chinchani 2023-04-30 22:26:23 -07:00 committed by GitHub
parent c169698c95
commit 3dd228e3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")
}
},
}