mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01: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
|
@ -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