Skip to content

Commit 708ff5d

Browse files
author
matheo
committed
use RuntimeExeception for prop errors
1 parent 58c927a commit 708ff5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/src/Twig/PropsNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function compile(Compiler $compiler): void
3636

3737
if (!$this->hasNode($name)) {
3838
$compiler
39-
->write('throw new \Exception("'.$name.' should be defined for component '.$this->getTemplateName().'");')
39+
->write('throw new \Twig\Error\RuntimeError("'.$name.' should be defined for component '.$this->getTemplateName().'");')
4040
->write('}')
4141
;
4242

0 commit comments

Comments
 (0)