Skip to content

Commit c98b33b

Browse files
Update src/Database/Database.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
1 parent 01aac3d commit c98b33b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Database/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,10 +2190,10 @@ public function updateAttribute(string $collection, string $id, ?string $type =
21902190
throw new DatabaseException('Spatial attributes are not supported');
21912191
}
21922192
if (!empty($size)) {
2193-
throw new DatabaseException('Size must be empty');
2193+
throw new DatabaseException('Size must be empty for spatial attributes');
21942194
}
21952195
if (!empty($array)) {
2196-
throw new DatabaseException('Array must be empty');
2196+
throw new DatabaseException('Spatial attributes cannot be arrays');
21972197
}
21982198
break;
21992199
default:

0 commit comments

Comments
 (0)