Skip to content

Commit

Permalink
Exception message is hidden (#398)
Browse files Browse the repository at this point in the history
Include the previous exception when throwing a FilesystemException.
  • Loading branch information
AidasK authored Jun 25, 2024
1 parent f5ea9f6 commit e9c5eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e9c5eba

Please sign in to comment.