File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Adapters/Storage/Mongo Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ function transformConstraint(constraint, inArray) {
492
492
case '$eq' :
493
493
answer [ key ] = inArray ? transformInteriorAtom ( constraint [ key ] ) : transformTopLevelAtom ( constraint [ key ] ) ;
494
494
if ( answer [ key ] === CannotTransform ) {
495
- throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom : ${ constraint [ key ] } ` ) ;
495
+ throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad constraint : ${ key } ${ JSON . stringify ( constraint ) } ` ) ;
496
496
}
497
497
break ;
498
498
@@ -505,7 +505,7 @@ function transformConstraint(constraint, inArray) {
505
505
answer [ key ] = arr . map ( value => {
506
506
let result = inArray ? transformInteriorAtom ( value ) : transformTopLevelAtom ( value ) ;
507
507
if ( result === CannotTransform ) {
508
- throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom : ${ value } ` ) ;
508
+ throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad constraint : ${ key } ${ JSON . stringify ( value ) } ${ JSON . stringify ( constraint ) } ` ) ;
509
509
}
510
510
return result ;
511
511
} ) ;
You can’t perform that action at this time.
0 commit comments