diff --git a/cmd/admin-handlers-config-kv.go b/cmd/admin-handlers-config-kv.go index c955cc067..d4c34678a 100644 --- a/cmd/admin-handlers-config-kv.go +++ b/cmd/admin-handlers-config-kv.go @@ -74,6 +74,10 @@ func (a adminAPIHandlers) DelConfigKVHandler(w http.ResponseWriter, r *http.Requ writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } + if err = validateConfig(cfg); err != nil { + writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), err.Error(), r.URL) + return + } if err = saveServerConfig(ctx, objectAPI, cfg); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) diff --git a/internal/config/notify/parse.go b/internal/config/notify/parse.go index e23cf4aaf..556ec78de 100644 --- a/internal/config/notify/parse.go +++ b/internal/config/notify/parse.go @@ -82,7 +82,7 @@ func RegisterNotificationTargets(ctx context.Context, cfg config.Config, transpo for _, targetID := range targetIDs { if !targetList.Exists(targetID) { return nil, config.Errorf( - "Unable to disable configured targets '%v'", + "Unable to disable currently configured targets '%v'", targetID) } }