mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Fail docs build on missing component file
This would have prevented #709.
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