diff --git a/src/Server.php b/src/Server.php index 5e2e1de..8816551 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); }