Procházet zdrojové kódy

return same error with more context

Mohammed Nafees před 4 roky
rodič
revize
bf0e8e6da4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      internal/helm/agent.go

+ 2 - 2
internal/helm/agent.go

@@ -255,8 +255,8 @@ func (a *Agent) UpgradeReleaseByValues(
 
 
 					return res, nil
 					return res, nil
 				} else {
 				} else {
-					// return the error with a more detailed message, something like this:
-					return nil, fmt.Errorf("another operation (install/upgrade/rollback) is in progress. If this error persists, please wait 60 seconds to force an upgrade")
+					// ask the user to wait for about a minute before retrying for the above fix to kick in
+					return nil, fmt.Errorf("another operation (install/upgrade/rollback) is in progress. If this error persists, please wait for 60 seconds to force an upgrade")
 				}
 				}
 			}
 			}
 		}
 		}