[soap] Enhance SOAPFaultError error unwrapping

This commit is contained in:
afjoseph 2022-01-10 15:59:53 +01:00 committed by Huin
parent 72ec887a3d
commit 730ab6506b

View File

@ -202,5 +202,6 @@ type SOAPFaultError struct {
} }
func (err *SOAPFaultError) Error() string { 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))
} }