Skip to content

Commit

Permalink
__toString handles Throwable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 3, 2015
1 parent 59d9b40 commit e5df0a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,10 @@ public function __toString()
try {
return $this->getRenderer()->render($this);

} catch (\Throwable $e) {
} catch (\Exception $e) {
}
if (isset($e)) {
if (func_num_args()) {
throw $e;
}
Expand Down

0 comments on commit e5df0a5

Please sign in to comment.