1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-01 17:21:31 +02:00

normalized internal errors formatting

This commit is contained in:
Gani Georgiev
2024-07-09 22:18:04 +03:00
parent 1f08b70283
commit 01450cde44
9 changed files with 12 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ func (m *JsonArray[T]) Scan(value any) error {
case string:
data = []byte(v)
default:
return fmt.Errorf("Failed to unmarshal JsonArray value: %q.", value)
return fmt.Errorf("failed to unmarshal JsonArray value: %q", value)
}
if len(data) == 0 {

View File

@@ -56,7 +56,7 @@ func (m *JsonMap) Scan(value any) error {
case string:
data = []byte(v)
default:
return fmt.Errorf("Failed to unmarshal JsonMap value: %q.", value)
return fmt.Errorf("failed to unmarshal JsonMap value: %q", value)
}
if len(data) == 0 {