return appropriate error upon tier update for incorrect credentials (#20034)

This commit is contained in:
Mark Theunissen
2024-07-03 17:17:20 +10:00
committed by GitHub
parent 32d04091a2
commit 88926ad8e9
3 changed files with 14 additions and 1 deletions

View File

@@ -144,7 +144,8 @@ func newWarmBackend(ctx context.Context, tier madmin.TierConfig, probe bool) (d
return nil, errTierTypeUnsupported
}
if err != nil {
return nil, errTierTypeUnsupported
tierLogIf(ctx, err)
return nil, errTierInvalidConfig
}
if probe {