mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Catch exception in download script
This commit is contained in:
parent
307125d71c
commit
ff8cc6554d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ try{
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exceptions\InvalidFileException){
|
catch(Exceptions\InvalidFileException | Exceptions\EbookNotFoundException){
|
||||||
Template::Emit404();
|
Template::Emit404();
|
||||||
}
|
}
|
||||||
?><?= Template::Header(['downloadUrl' => $downloadUrl]) ?>
|
?><?= Template::Header(['downloadUrl' => $downloadUrl]) ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue