Skip to content

Commit

Permalink
Fix broken link in spacebars-compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
avital committed Jun 22, 2015
1 parent 325e423 commit b3959ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/spacebars-compiler/react.js
Expand Up @@ -18,7 +18,8 @@ ReactComponentSiblingForbidder.def({
if (!parentTag) {
throw new Error(
"{{> React}} must be used in a container element"
+ (this.sourceName ? (" in " + this.sourceName) : ""));
+ (this.sourceName ? (" in " + this.sourceName) : "")
+ ". Learn more at https://github.com/meteor/meteor/wiki/React-components-must-be-the-only-thing-in-their-wrapper-element");
}

var numSiblings = 0;
Expand All @@ -32,7 +33,8 @@ ReactComponentSiblingForbidder.def({
if (numSiblings > 0) {
throw new Error(
"{{> React}} must be used as the only child in a container element"
+ (this.sourceName ? (" in " + this.sourceName) : ""));
+ (this.sourceName ? (" in " + this.sourceName) : "")
+ ". Learn more at https://github.com/meteor/meteor/wiki/React-components-must-be-the-only-thing-in-their-wrapper-element");
}
}
},
Expand Down

0 comments on commit b3959ea

Please sign in to comment.