diff --git a/rekognition/error.go b/rekognition/error.go index b5b5cfe..0dd6164 100644 --- a/rekognition/error.go +++ b/rekognition/error.go @@ -16,11 +16,11 @@ func IsErrorInvalidImageEncoding(err error) (ok bool) { return strings.Contains(err.Error(), msgInvalidImageEncoding) } -// IsErrorInvalidParameter checks if gicen error is `Invalid image encoding`. +// IsErrorInvalidParameter checks if gicen error is `InvalidParameterException`. func IsErrorInvalidParameter(err error) (ok bool) { if err == nil { return false } - return strings.Contains(err.Error(), msgInvalidImageEncoding) + return strings.Contains(err.Error(), msgInvalidParameter) }