Closed WillSewell closed 4 years ago
Currently we see errors logged like:
Got error: (%!s(<nil>)) retry count is 0 / 3
Which implies there are cases where awsErr.Message() == "". For that reason I think it's more important that the awsErr.Code() is logged.
awsErr.Message() == ""
awsErr.Code()
In addition, the formatting looks quite ugly when awsErr.Message() == nil, so I also added a conditional check before formatting it.
awsErr.Message() == nil
Currently we see errors logged like:
Which implies there are cases where
awsErr.Message() == ""
. For that reason I think it's more important that theawsErr.Code()
is logged.In addition, the formatting looks quite ugly when
awsErr.Message() == nil
, so I also added a conditional check before formatting it.