From 2e0584bdf34cae80827d48b38ddb5b4e80de4104 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 21 Mar 2024 15:37:37 +0100 Subject: [PATCH] Clearer error message "May" is also interchangeable with "could". "Should" fits better in this context. --- modules/validation/validatable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/validation/validatable.go b/modules/validation/validatable.go index 24b1ce6682..405450aa1c 100644 --- a/modules/validation/validatable.go +++ b/modules/validation/validatable.go @@ -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 {