mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 18:48:14 +02:00
updated error messages
This commit is contained in:
1 parent
5a5211d7f2
commit
fab334fca6
14 files changed
+36
-31
No files matched your search
@@ -639,7 +639,7 @@ func checkUniqueRuleLabel(value any) error {
|
||||
if conflicts {
|
||||
return validation.Errors{
|
||||
strconv.Itoa(i): validation.Errors{
|
||||
"label": validation.NewError("validation_conflicting_rate_limit_rule", "Rate limit rule configuration with label "+rule.Label+" already exists or conflicts with another rule.").
|
||||
"label": validation.NewError("validation_conflicting_rate_limit_rule", "Rate limit rule configuration with label {{.label}} already exists or conflicts with another rule.").
|
||||
SetParams(map[string]any{"label": rule.Label}),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user