From 2d7c5c4746bf106fdc3dd6094c9e5da025b75ab9 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 6 Apr 2015 15:22:43 -0700 Subject: [PATCH] Fail docs build on missing component file This would have prevented #709. --- website/layout/AutodocsLayout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 3bcaf0113..23b223814 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -240,7 +240,9 @@ var APIDoc = React.createClass({ render: function() { var content = this.props.content; if (!content.methods) { - return
Error
; + throw new Error( + 'No component methods found for ' + content.componentName + ); } return (