Catch exceptions when rendering a page version
fvsch opened this issue · 1 comments
fvsch commented
In https://github.com/fvsch/kirby-staticbuilder/blob/master/src/Builder.php#L402
catch exceptions (and possibly Error for PHP7) and add the error to the log instead of letting PHP throw a Fatal Error: Uncaught exception.
Tried that before and it didn't work but I think it was because I was trying to catch a PHP error in PHP 5.5-5.6, but didn't manage the Exception use case.
Possibly related: #23.