Skip to content

Commit

Permalink
[soap] Enhance SOAPFaultError error unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
afjoseph authored and huin committed Jan 13, 2022
1 parent 72ec887 commit 730ab65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion soap/soap.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,6 @@ type SOAPFaultError struct {
}

func (err *SOAPFaultError) Error() string {
return fmt.Sprintf("SOAP fault: %s", err.FaultString)
return fmt.Sprintf("SOAP fault. Code: %s | Explanation: %s | Detail: %s",
err.FaultCode, err.FaultString, string(err.Detail.Raw))
}

0 comments on commit 730ab65

Please sign in to comment.