Skip to content

Commit c865969

Browse files
committed
fix(index): copy/paste for loops
1 parent 0f9eb88 commit c865969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function walk (opts, nodes) {
229229
if (node.tag === loops[0]) {
230230
// handle syntax error
231231
if (!(node.attrs && node.attrs.loop)) {
232-
throw new Error(`the "${conditionals[1]}" tag must have a "loop" attribute`)
232+
throw new Error(`the "${loops[0]}" tag must have a "loop" attribute`)
233233
}
234234

235235
// parse the "loop" param

0 commit comments

Comments
 (0)