From 7df973bea26fc2ec81c5f465a0767c5e4b5ec636 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Thu, 26 Dec 2024 17:09:05 -0600 Subject: [PATCH] Fix wrong catch block in artwork upload --- www/artworks/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/artworks/post.php b/www/artworks/post.php index 0844818b..cfb03998 100644 --- a/www/artworks/post.php +++ b/www/artworks/post.php @@ -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();