Merge pull request #710 from spicyj/fail-build-missing

Fail docs build on missing component file
This commit is contained in:
Christopher Chedeau
2015-04-06 15:30:22 -07:00

View File

@@ -240,7 +240,9 @@ var APIDoc = React.createClass({
render: function() {
var content = this.props.content;
if (!content.methods) {
return <div>Error</div>;
throw new Error(
'No component methods found for ' + content.componentName
);
}
return (
<div>