瀏覽代碼

fix string formatting for error storage preview deployment

Mohammed Nafees 3 年之前
父節點
當前提交
4f5e4fa54d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/server/handlers/environment/finalize_deployment_with_errors.go

+ 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
 	var lastErrors []string
 
 
 	for resName, errString := range request.Errors {
 	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, ",")
 	depl.LastErrors = strings.Join(lastErrors, ",")