Skip to content

Commit

Permalink
Fail docs build on missing component file
Browse files Browse the repository at this point in the history
This would have prevented facebook#709.
  • Loading branch information
sophiebits committed Apr 6, 2015
1 parent 6a97054 commit 2d7c5c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/layout/AutodocsLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2d7c5c4

Please sign in to comment.