Skip to content

Commit 166646a

Browse files
committed
Outputing offending bundle in assert message.
This will help track down the issue should this assert arrise. See @levigroker’s comments in parse-community#967
1 parent 7a820b7 commit 166646a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ - (void)_rawRegisterSubclass:(Class)kls {
339339
}
340340

341341
- (void)_registerSubclassesInBundle:(NSBundle *)bundle {
342-
PFConsistencyAssert(bundle.loaded, @"Cannot register subclasses in a bundle that hasn't been loaded!");
342+
PFConsistencyAssert(bundle.loaded, @"Cannot register subclasses in an unloaded bundle: %@", bundle);
343343

344344
const char *executablePath = bundle.executablePath.UTF8String;
345345
if (executablePath == NULL) {

0 commit comments

Comments
 (0)