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); }