skipperbent / simple-php-router

Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
631 stars 116 forks source link

How can I get real exception instead of Router one? #674

Open Geckon01 opened 1 year ago

Geckon01 commented 1 year ago

For example: I have exeption occured in file src/pages/main.php. But I'm getting this one instead. I've also tried implementing IExceptionHandler, but the $error variable in handleError function has same exception as on screenshot. image Output on the screenshot if formed by https://github.com/filp/whoops lib. But it do not influence Router, whether I'm using whoops or not behavior is the same.

ms-afk commented 10 months ago

Can you post the code of your ExceptionHandler implementation so I try to see what's wrong?

Geckon01 commented 7 months ago

I kinda do have a solution. I'll try to make PR in a few weeks