Skip to content

Commit

Permalink
exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Art committed Jun 13, 2023
1 parent f5cd9ac commit d7f2ed5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

require __DIR__.'/vendor/autoload.php';

set_exception_handler(static function(Throwable $e) {
echo 'Exception: '.$e->getMessage()."\n";
});

$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();

Expand Down

0 comments on commit d7f2ed5

Please sign in to comment.