Skip to content

Commit

Permalink
cleanup env checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 5, 2019
1 parent 64a02fe commit aa6c5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
children: []
};
} else {
return new ParseError("development" === "development" ? "Parser expected a self-closing tag or text." : "", start, end);
return new ParseError(parseErrorMessage("Parser expected a self-closing tag or text."), start, end);
}
} else {
// If the input size is greater than one, it must be a full element with
Expand Down
4 changes: 1 addition & 3 deletions packages/moon/src/compiler/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ function parseElement(start, end, tokens) {
};
} else {
return new ParseError(
process.env.MOON_ENV === "development" ?
"Parser expected a self-closing tag or text." :
"",
parseErrorMessage("Parser expected a self-closing tag or text."),
start,
end
);
Expand Down

0 comments on commit aa6c5a7

Please sign in to comment.