mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 13:04:04 +02:00
normalized internal errors formatting
This commit is contained in:
1 parent
1f08b70283
commit
01450cde44
9 files changed
+12
-12
No files matched your search
@@ -76,7 +76,7 @@ func (r *SimpleFieldResolver) UpdateQuery(query *dbx.SelectQuery) error {
|
||||
// Returns error if `field` is not in `r.allowedFields`.
|
||||
func (r *SimpleFieldResolver) Resolve(field string) (*ResolverResult, error) {
|
||||
if !list.ExistInSliceWithRegex(field, r.allowedFields) {
|
||||
return nil, fmt.Errorf("Failed to resolve field %q.", field)
|
||||
return nil, fmt.Errorf("failed to resolve field %q", field)
|
||||
}
|
||||
|
||||
parts := strings.Split(field, ".")
|
||||
|
||||
Reference in new issue
Block a user