client error returns docs and/or request id if given

This commit is contained in:
Rick Olson 2015-03-19 11:18:12 -06:00
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
}