瀏覽代碼

add refresh message

Alexander Belanger 4 年之前
父節點
當前提交
8cdf5f7e1f
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/server/handlers/release/upgrade.go
  2. 1 1
      api/server/handlers/v1/release/upgrade.go

+ 1 - 1
api/server/handlers/release/upgrade.go

@@ -133,7 +133,7 @@ func (c *UpgradeReleaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request
 
 		if currHelmRelease.Version != int(request.LatestRevision) {
 			c.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(
-				fmt.Errorf("The provided revision is not up to date with the current revision. Provided revision is %d, latest revision is %d. If you would like to deploy from this revision, please revert first and update the configuration.", request.LatestRevision, currHelmRelease.Version),
+				fmt.Errorf("The provided revision is not up to date with the current revision (you may need to refresh the deployment). Provided revision is %d, latest revision is %d. If you would like to deploy from this revision, please revert first and update the configuration.", request.LatestRevision, currHelmRelease.Version),
 				http.StatusBadRequest,
 			))
 

+ 1 - 1
api/server/handlers/v1/release/upgrade.go

@@ -135,7 +135,7 @@ func (c *UpgradeReleaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request
 
 		if currHelmRelease.Version != int(request.LatestRevision) {
 			c.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(
-				fmt.Errorf("The provided revision is not up to date with the current revision. Provided revision is %d, latest revision is %d. If you would like to deploy from this revision, please revert first and update the configuration.", request.LatestRevision, currHelmRelease.Version),
+				fmt.Errorf("The provided revision is not up to date with the current revision (you may need to refresh the deployment). Provided revision is %d, latest revision is %d. If you would like to deploy from this revision, please revert first and update the configuration.", request.LatestRevision, currHelmRelease.Version),
 				http.StatusBadRequest,
 			))