X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e5da0ad603c58c2dd86581e35d6e1a60c0ae2e7d..1079aa7d6a839379e09d185e712d1ba1613686fd:/thumb/index.php diff --git a/thumb/index.php b/thumb/index.php index 532499f..1d36948 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -16,7 +16,7 @@ if (!file_exists($imgpath)) { try { $target = mkthumb($imgpath, $width, $height); } -catch (Exception $e) { +catch (Throwable $e) { http_response_code($e->getCode() ?: 500); $target = '500.png'; if (file_exists($target)) {