diff --git a/FirebaseUI/Core/Implementation/FirebaseArray.m b/FirebaseUI/Core/Implementation/FirebaseArray.m index 47f2218c3c4..8eebb931fa7 100755 --- a/FirebaseUI/Core/Implementation/FirebaseArray.m +++ b/FirebaseUI/Core/Implementation/FirebaseArray.m @@ -157,7 +157,9 @@ - (id)objectAtIndexedSubscript:(NSUInteger)index{ } - (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)index{ - NSAssert(NO, @"Subscripting is read-only on FirebaseArray"); + @throw [NSException exceptionWithName:@"FirebaseArraySetIndexWithSubscript" + reason:@"Setting an object as FirebaseArray[i] is not supported." + userInfo:nil]; } @end