Skip to content

Commit

Permalink
Merge pull request facebook#710 from spicyj/fail-build-missing
Browse files Browse the repository at this point in the history
Fail docs build on missing component file
  • Loading branch information
vjeux committed Apr 6, 2015
2 parents 6a97054 + 2d7c5c4 commit d7c0acd
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 d7c0acd

Please sign in to comment.