@ -134,7 +134,7 @@ func (u *upgradeCmd) run() error {
// The returned error is a grpc.rpcError that wraps the message from the original error.
// The returned error is a grpc.rpcError that wraps the message from the original error.
// So we're stuck doing string matching against the wrapped error, which is nested somewhere
// So we're stuck doing string matching against the wrapped error, which is nested somewhere
// inside of the grpc.rpcError message.
// inside of the grpc.rpcError message.
_ , err := u . client . Release Content( u . release , helm . ContentReleaseVersion ( 1 ) )
_ , err := u . client . Release History( u . release , helm . WithMaxHistory ( 1 ) )
if err != nil && strings . Contains ( err . Error ( ) , driver . ErrReleaseNotFound . Error ( ) ) {
if err != nil && strings . Contains ( err . Error ( ) , driver . ErrReleaseNotFound . Error ( ) ) {
fmt . Fprintf ( u . out , "Release %q does not exist. Installing it now.\n" , u . release )
fmt . Fprintf ( u . out , "Release %q does not exist. Installing it now.\n" , u . release )
ic := & installCmd {
ic := & installCmd {