file:///Users/briankim/Projects/crank/src/jsx-tag.ts:248
throw new SyntaxError(
^
SyntaxError: Unexpected text `"`
These messages could be nicer. Like how Babel and TypeScript do it. Something that shows the error in context of the line. Maybe we could use a SyntaxError subclass like JSXSyntaxError to make things even clearer.
The 0.5 template tag needs better error messages.
Throws
These messages could be nicer. Like how Babel and TypeScript do it. Something that shows the error in context of the line. Maybe we could use a
SyntaxError
subclass likeJSXSyntaxError
to make things even clearer.