Fix crash when artwork image uploaded is too large.

This commit is contained in:
Alex Cabal 2025-06-22 16:11:07 -05:00
parent eaa8d4f13b
commit 0d2dcc3772
3 changed files with 25 additions and 12 deletions

View file

@ -45,4 +45,16 @@ class ValidationException extends AppException{
return false;
}
public function Remove(string $exception): void{
$newExceptions = [];
foreach($this->Exceptions as $childException){
if(!is_a($childException, $exception)){
$newExceptions[] = $childException;
}
}
$this->Exceptions = $newExceptions;
}
}