Просмотр исходного кода

Merge pull request #2665 from porter-dev/nafees/hotfix-preview-error-store

[hotfix] Fix string formatting for error message storage for failed preview deployment
jusrhee 3 лет назад
Родитель
Сommit
ee68ef2c9c

+ 1 - 1
api/server/handlers/environment/finalize_deployment_with_errors.go

@@ -125,7 +125,7 @@ func (c *FinalizeDeploymentWithErrorsHandler) ServeHTTP(w http.ResponseWriter, r
 	var lastErrors []string
 
 	for resName, errString := range request.Errors {
-		lastErrors = append(lastErrors, "%s: %s,", resName, errString)
+		lastErrors = append(lastErrors, fmt.Sprintf("%s: %s", resName, errString))
 	}
 
 	depl.LastErrors = strings.Join(lastErrors, ",")