Reference

fatal

Custom fatal view that is shown if there's a PHP error

The fatal option takes a closure as value.

return [
  'fatal' => function() {
    include kirby()->root('templates') . '/fatal.php' ;
  }
];