diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-03-02 16:19:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 16:19:30 +0100 |
commit | b54069189c6bb8d51839e9c93f47d2342db06a37 (patch) | |
tree | cec21282470625432b533b4ebde5ec8e72e02f62 /lib | |
parent | 64a29d01a492db19289833ba9f485b7dca881cef (diff) | |
parent | 5ce9e73bad3d80657ab2b13f3cc5f91f3033a03f (diff) | |
download | nextcloud-server-b54069189c6bb8d51839e9c93f47d2342db06a37.tar.gz nextcloud-server-b54069189c6bb8d51839e9c93f47d2342db06a37.zip |
Merge pull request #19742 from nextcloud/bug/19740/add-msg-for-exception
Add message for DoesNotExistException
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Updater/ChangesCheck.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |