improve layoutSpecThatFits: assertion message (#2201)

This commit is contained in:
Hannah Troisi
2016-09-06 11:42:59 -07:00
committed by Adlai Holler
parent b233122604
commit 03c21830a5

View File

@@ -2272,7 +2272,7 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
return _layoutSpecBlock(self, constrainedSize);
}
ASDisplayNodeAssert(NO, @"-[ASDisplayNode layoutSpecThatFits:] should never fall through to return empty value");
ASDisplayNodeAssert(NO, @"-[ASDisplayNode layoutSpecThatFits:] should never return an empty value. One way this is caused is by calling -[super layoutSpecThatFits:] which is not currently supported.");
return [[ASLayoutSpec alloc] init];
}