mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Fix wrong catch block in artwork upload
This commit is contained in:
parent
2948f96518
commit
7df973bea2
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
catch(Exceptions\ArtworkNotFoundException){
|
||||
Template::ExitWithCode(Enums\HttpCode::NotFound);
|
||||
}
|
||||
catch(Exceptions\InvalidArtworkException | Exceptions\InvalidArtworkTagException | Exceptions\InvalidArtistException | Exceptions\InvalidFileUploadException $ex){
|
||||
catch(Exceptions\InvalidArtworkException | Exceptions\InvalidArtworkTagException | Exceptions\InvalidArtistException | Exceptions\InvalidImageUploadException | Exceptions\InvalidFileUploadException $ex){
|
||||
// If we were passed a more generic file upload exception from `HttpInput`, swap it for a more specific exception to show to the user.
|
||||
if($ex instanceof Exceptions\InvalidFileUploadException){
|
||||
$ex = new Exceptions\InvalidImageUploadException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue