Better exception matching

This commit is contained in:
Alex Cabal 2022-01-08 19:59:33 -06:00
parent 6334838079
commit 3c2819081d
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ catch(SeeOtherEbookException $ex){
header('Location: ' . $ex->Url);
exit();
}
catch(\Exception $ex){
catch(InvalidEbookException $ex){
http_response_code(404);
include(WEB_ROOT . '/404.php');
exit();