From 5ce9e73bad3d80657ab2b13f3cc5f91f3033a03f Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 2 Mar 2020 13:24:06 +0100 Subject: Add message for DoesNotExistException Signed-off-by: Daniel Kesselberg --- lib/private/Updater/ChangesCheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/Updater/ChangesCheck.php b/lib/private/Updater/ChangesCheck.php index 7346ceab6b1..259fb750c05 100644 --- a/lib/private/Updater/ChangesCheck.php +++ b/lib/private/Updater/ChangesCheck.php @@ -56,8 +56,8 @@ class ChangesCheck { $version = $this->normalizeVersion($version); $changesInfo = $this->mapper->getChanges($version); $changesData = json_decode($changesInfo->getData(), true); - if(empty($changesData)) { - throw new DoesNotExistException(); + if (empty($changesData)) { + throw new DoesNotExistException('Unable to decode changes info'); } return $changesData; } -- cgit v1.2.3