Unverified Commit a8023979 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3830 from michelleN/prettyError

ref(cmd/helm): show grpc error msg from prettyError
parents 3ba2a009 499636d7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment