Skip to content

Commit 6e78145

Browse files
committed
CacheMacro: better error message
1 parent 96e1d58 commit 6e78145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function finalize()
4949
public function nodeOpened(Latte\MacroNode $node)
5050
{
5151
if ($node->modifiers) {
52-
throw new Latte\CompileException('Modifiers are not allowed here.');
52+
throw new Latte\CompileException("Modifiers are not allowed in {{$node->name}}");
5353
}
5454
$this->used = TRUE;
5555
$node->isEmpty = FALSE;

0 commit comments

Comments
 (0)