mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -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 {
|
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