mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 09:17:55 +08:00
Merge pull request #710 from spicyj/fail-build-missing
Fail docs build on missing component file
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user