mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
Clearer error message
"May" is also interchangeable with "could". "Should" fits better in this context.
This commit is contained in:
parent
84f2aab570
commit
2e0584bdf3
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ func ValidateNotEmpty(value any, fieldName string) []string {
|
|||
if isValid {
|
||||
return []string{}
|
||||
}
|
||||
return []string{fmt.Sprintf("Field %v may not be empty", fieldName)}
|
||||
return []string{fmt.Sprintf("Field %v should not be empty", fieldName)}
|
||||
}
|
||||
|
||||
func ValidateMaxLen(value string, maxLen int, fieldName string) []string {
|
||||
|
|
Loading…
Reference in a new issue