Fail docs build on missing component file
This would have prevented #709.
This commit is contained in:
parent
6a97054696
commit
2d7c5c4746
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue