File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Parse/Internal/FieldOperation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ - (PFFieldOperation *)mergeWithPrevious:(PFFieldOperation *)previous {
267
267
NSArray *oldArray = (((PFSetOperation *)previous).value );
268
268
return [PFSetOperation setWithValue: [self applyToValue: oldArray forKey: nil ]];
269
269
} else {
270
- [NSException raise: NSInternalInconsistencyException format: @" Operation is invalid after previous operation ." ];
270
+ [NSException raise: NSInternalInconsistencyException format: @" You can't add an item to a non-array ." ];
271
271
return nil ;
272
272
}
273
273
} else if ([previous isKindOfClass: [PFAddUniqueOperation class ]]) {
@@ -336,14 +336,14 @@ - (PFFieldOperation *)mergeWithPrevious:(PFFieldOperation *)previous {
336
336
if (!previous) {
337
337
return self;
338
338
} else if ([previous isKindOfClass: [PFDeleteOperation class ]]) {
339
- [NSException raise: NSInternalInconsistencyException format: @" Operation is invalid after previous operation ." ];
339
+ [NSException raise: NSInternalInconsistencyException format: @" You can't remove items from a deleted array ." ];
340
340
return nil ;
341
341
} else if ([previous isKindOfClass: [PFSetOperation class ]]) {
342
342
if ([((PFSetOperation *)previous).value isKindOfClass: [NSArray class ]]) {
343
343
NSArray *oldArray = ((PFSetOperation *)previous).value ;
344
344
return [PFSetOperation setWithValue: [self applyToValue: oldArray forKey: nil ]];
345
345
} else {
346
- [NSException raise: NSInternalInconsistencyException format: @" Operation is invalid after previous operation ." ];
346
+ [NSException raise: NSInternalInconsistencyException format: @" You can't add an item to a non-array ." ];
347
347
return nil ;
348
348
}
349
349
} else if ([previous isKindOfClass: [PFRemoveOperation class ]]) {
You can’t perform that action at this time.
0 commit comments