Gracefully catches Twig exceptions and displays error messages
MAILPOET-667 #time 3h
This commit is contained in:
@ -73,7 +73,11 @@ class Widget {
|
||||
)
|
||||
);
|
||||
|
||||
echo $this->renderer->render('form/iframe.html', $data);
|
||||
try {
|
||||
echo $this->renderer->render('form/iframe.html', $data);
|
||||
} catch(\Exception $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user