Skip to content

Commit 0a5c894

Browse files
committed
Add an error message
1 parent b4091b9 commit 0a5c894

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parse/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ function convertAst(ast: Node, rawTemplates: RawGlimmerTemplate[]): void {
5656
if (templateIndex > -1) {
5757
const rawTemplate = unprocessedTemplates.splice(templateIndex, 1)[0];
5858
if (!rawTemplate) {
59-
return null;
59+
throw new Error(
60+
'expected raw template because splice index came from findIndex',
61+
);
6062
}
6163
convertNode(node, rawTemplate);
6264
} else {

0 commit comments

Comments
 (0)