Skip to content

Commit 4ba74df

Browse files
authored
Update ComponentExtension.php
1 parent 9ea6962 commit 4ba74df

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/TwigComponent/src/Twig/ComponentExtension.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ private function throwRuntimeError(string $name, \Throwable $e): void
120120
throw $e;
121121
}
122122

123-
if (!($e instanceof \Exception)) {
124-
$e = new \Exception($e->getMessage(), $e->getCode(), $e);
125-
}
126-
127123
throw new RuntimeError(\sprintf('Error rendering "%s" component: "%s"', $name, $e->getMessage()), previous: $e);
128124
}
129125
}

0 commit comments

Comments
 (0)