client error returns docs and/or request id if given
This commit is contained in:
parent
7377f3b75e
commit
9827837cad
@ -485,5 +485,12 @@ type ClientError struct {
|
||||
}
|
||||
|
||||
func (e *ClientError) Error() string {
|
||||
return e.Message
|
||||
msg := e.Message
|
||||
if len(e.DocumentationUrl) > 0 {
|
||||
msg += "\nDocs: " + e.DocumentationUrl
|
||||
}
|
||||
if len(e.RequestId) > 0 {
|
||||
msg += "\nRequest ID: " + e.RequestId
|
||||
}
|
||||
return msg
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user