mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Add startup error shutdown message to log
This commit is contained in:
1
ca/ca.go
1
ca/ca.go
@@ -482,6 +482,7 @@ func (ca *CA) Run() error {
|
||||
// some part of the configuration not being correct. This case is
|
||||
// handled by stopping the CA in its entirety.
|
||||
if !errors.Is(err, http.ErrServerClosed) {
|
||||
log.Println("shutting down due to startup error ...")
|
||||
if stopErr := ca.Stop(); stopErr != nil {
|
||||
err = fmt.Errorf("failed stopping CA after error occurred: %w: %w", err, stopErr)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user