Skip to content

Commit baa0fe8

Browse files
committed
Improve asserts.
Former-commit-id: f9894c2
1 parent 749d58a commit baa0fe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cocos2d-ui/CCBReader/CCBReader.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,9 @@ - (void) readPropertyForNode:(CCNode*) node parent:(CCNode*)parent isExtraProp:(
690690
// Load sub file
691691
NSString* path = [[CCFileUtils sharedFileUtils] fullPathForFilename:ccbFileName];
692692
NSData* d = [NSData dataWithContentsOfFile:path];
693-
693+
694+
NSAssert(d,@"Failed to find ccb file: %@",ccbFileName);
695+
694696
CCBReader* reader = [[CCBReader alloc] init];
695697
reader.animationManager.rootContainerSize = parent.contentSize;
696698

0 commit comments

Comments
 (0)