Fail docs build on missing component file

This would have prevented #709.
This commit is contained in:
Ben Alpert 2015-04-06 15:22:43 -07:00
parent 6a97054696
commit 2d7c5c4746
1 changed files with 3 additions and 1 deletions

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>