From 2ca1673b6cb941f762352c137578fbf22e132c17 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Thu, 18 Jul 2024 10:50:06 +1000 Subject: [PATCH] fix wording --- backend/controller/dal/dal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/dal/dal.go b/backend/controller/dal/dal.go index d7609779d7..a0fd3b0c3c 100644 --- a/backend/controller/dal/dal.go +++ b/backend/controller/dal/dal.go @@ -754,7 +754,7 @@ func (d *DAL) ReplaceDeployment(ctx context.Context, newDeploymentKey model.Depl if err == nil { count, err := tx.ReplaceDeployment(ctx, oldDeployment.Key, newDeploymentKey, int32(minReplicas)) if err != nil { - return fmt.Errorf("replace deployment failed replace min replicas from %v to %v: %w", oldDeployment.Key, newDeploymentKey, dalerrs.TranslatePGError(err)) + return fmt.Errorf("replace deployment failed to replace min replicas from %v to %v: %w", oldDeployment.Key, newDeploymentKey, dalerrs.TranslatePGError(err)) } if count == 1 { return fmt.Errorf("replace deployment failed: deployment already exists from %v to %v: %w", oldDeployment.Key, newDeploymentKey, ErrReplaceDeploymentAlreadyActive)