ref(cmd/helm): show grpc error msg from prettyError

(cherry picked from commit 499636d70c)
release-2.9
Michelle Noorali 8 years ago committed by Matthew Fisher
parent cb2f5b7015
commit beeac8b0c8
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -216,7 +216,7 @@ func prettyError(err error) error {
}
// If it's grpc's error, make it more user-friendly.
if s, ok := status.FromError(err); ok {
return s.Err()
return fmt.Errorf(s.Message())
}
// Else return the original error.
return err

Loading…
Cancel
Save