diff --git a/errors.go b/errors.go index 6ca87f9..af08be6 100644 --- a/errors.go +++ b/errors.go @@ -172,7 +172,11 @@ type NFSStatusError struct { // Error is The wrapped error func (s *NFSStatusError) Error() string { - return s.NFSStatus.String() + message := s.NFSStatus.String() + if s.WrappedErr != nil { + message = fmt.Sprintf("%s: %v", message, s.WrappedErr) + } + return message } // Code for NFS issues are successful RPC responses