Skip to content

Commit

Permalink
[rekognition] fix #27 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
evalphobia authored Mar 1, 2018
1 parent 5efab2c commit 3591b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rekognition/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 3591b9f

Please sign in to comment.