From e9c5eba209ba2df9d3030dadf0ca5b9b810efe86 Mon Sep 17 00:00:00 2001 From: Aidas Klimas Date: Tue, 25 Jun 2024 20:40:21 +0300 Subject: [PATCH] Exception message is hidden (#398) Include the previous exception when throwing a FilesystemException. --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index fb77046e..88165518 100644 --- a/src/Server.php +++ b/src/Server.php @@ -689,7 +689,7 @@ public function makeImage($path, array $params) $this->api->run($tmp, $this->getAllParams($params)) ); } catch (FilesystemV2Exception $exception) { - throw new FilesystemException('Could not write the image `'.$cachedPath.'`.'); + throw new FilesystemException('Could not write the image `'.$cachedPath.'`.', 0, $exception); } finally { unlink($tmp); }