From 2076915145d4cde8139eb033014c048f591083f3 Mon Sep 17 00:00:00 2001 From: Arne Blankerts Date: Sun, 3 Mar 2024 13:12:40 +0100 Subject: [PATCH] Revert "Remove useless, redundant catch" This reverts commit 2fe9353f9a799ea5f679910fb4ae5b1adef9ce3c. --- src/ManifestDocumentMapper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ManifestDocumentMapper.php b/src/ManifestDocumentMapper.php index a5e22e9..c5d797a 100644 --- a/src/ManifestDocumentMapper.php +++ b/src/ManifestDocumentMapper.php @@ -32,6 +32,8 @@ public function map(ManifestDocument $document): Manifest { $requirements, $bundledComponents ); + } catch (VersionException $e) { + throw new ManifestDocumentMapperException($e->getMessage(), (int)$e->getCode(), $e); } catch (Exception $e) { throw new ManifestDocumentMapperException($e->getMessage(), (int)$e->getCode(), $e); }