Skip to content

Commit 5bd8abc

Browse files
committed
fix: refactor error message
1 parent 12cd379 commit 5bd8abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ const buildWhereClause = ({ schema, query, index, caseInsensitive }): WhereClaus
488488
if (!isAllValuesRegexOrNone(fieldValue.$all)) {
489489
throw new Parse.Error(
490490
Parse.Error.INVALID_JSON,
491-
ErrorMessage.queryAllValueInvalid(fieldValue.$all)
491+
ErrorMessage.queryValueTypeInvalid(`regex type or none: ${fieldValue.$all}`, '$all')
492492
);
493493
}
494494

0 commit comments

Comments
 (0)