Skip to content

Commit

Permalink
aws/request: Fix NewErrParamMinLen to use correct ParamMinLenErrCode (#…
Browse files Browse the repository at this point in the history
…1336)

Fixes the `NewErrParamMinLen` function returning the wrong error code. `ParamMinLenErrCode` should be returned not `ParamMinValueErrCode`.

Fix #1335
  • Loading branch information
deedweird authored and jasdel committed Jun 12, 2017
1 parent 5327e5f commit aff9ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/request/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ type ErrParamMinLen struct {
func NewErrParamMinLen(field string, min int) *ErrParamMinLen {
return &ErrParamMinLen{
errInvalidParam: errInvalidParam{
code: ParamMinValueErrCode,
code: ParamMinLenErrCode,
field: field,
msg: fmt.Sprintf("minimum field size of %v", min),
},
Expand Down

0 comments on commit aff9ab6

Please sign in to comment.