From 9a0034645716fc990ac201eddfa6edd130d824bb Mon Sep 17 00:00:00 2001 From: Aidas Klimas Date: Tue, 25 Jun 2024 13:20:27 +0300 Subject: [PATCH 1/2] Update Server.php --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index fb77046e..5e2e1def 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.'`. ' . $exception->getMessage()); } finally { unlink($tmp); } From 952731fa3e8a5763e60ec202633b8829fe6ddf04 Mon Sep 17 00:00:00 2001 From: Aidas Klimas Date: Tue, 25 Jun 2024 17:17:22 +0300 Subject: [PATCH 2/2] Update Server.php --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index 5e2e1def..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.'`. ' . $exception->getMessage()); + throw new FilesystemException('Could not write the image `'.$cachedPath.'`.', 0, $exception); } finally { unlink($tmp); }