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

pull/3830/head
Michelle Noorali 7 years ago
parent 58e4b6ac61
commit 499636d70c

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

Loading…
Cancel
Save