Catch exception in download script

This commit is contained in:
Alex Cabal 2024-02-28 09:04:05 -06:00
parent 307125d71c
commit ff8cc6554d

View file

@ -69,7 +69,7 @@ try{
exit();
}
}
catch(Exceptions\InvalidFileException){
catch(Exceptions\InvalidFileException | Exceptions\EbookNotFoundException){
Template::Emit404();
}
?><?= Template::Header(['downloadUrl' => $downloadUrl]) ?>