Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #42 from bhcleek/restore-simple-required-error
Browse files Browse the repository at this point in the history
restore simple required error message
  • Loading branch information
mholt committed Nov 10, 2015
2 parents 2cf3653 + 2419535 commit 89411c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func Validate(req *http.Request, userStruct FieldMapper) Errors {
}

addRequiredError := func() {
errorMsg := "Please enter a value for " + fieldName
errorMsg := "Required"
if len(fieldSpec.ErrorMessage) > 0 {
errorMsg = fieldSpec.ErrorMessage
}
Expand Down

0 comments on commit 89411c4

Please sign in to comment.