diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-02 18:37:33 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-02 18:40:06 +0200 |
commit | a8d1ede3474d394566bff8ef721908b7df3f86c3 (patch) | |
tree | 99d421c73a061c730d46e6246ed65896dbb4dcea /lib/private/files/cache | |
parent | 9f58097e4dc6fce20ba8995a9f82951d4dc3a80e (diff) | |
download | nextcloud-server-a8d1ede3474d394566bff8ef721908b7df3f86c3.tar.gz nextcloud-server-a8d1ede3474d394566bff8ef721908b7df3f86c3.zip |
Fix the exception messages
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r-- | lib/private/files/cache/cache.php | 2 | ||||
-rw-r--r-- | lib/private/files/cache/storage.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 1d012268970..9a785d071f7 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -287,7 +287,7 @@ class Cache { $this->update($id, $data); return $id; } else { - throw new \RuntimeException('File entry exists when inserting and does not exist on select... go away'); + throw new \RuntimeException('File entry could not be inserted with insertIfNotExist() but could also not be selected with getId() in order to perform an update. Please try again.'); } } } diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php index 86803b5f01d..2007f0c9e3d 100644 --- a/lib/private/files/cache/storage.php +++ b/lib/private/files/cache/storage.php @@ -62,7 +62,7 @@ class Storage { if ($row = $result->fetchRow()) { $this->numericId = $row['numeric_id']; } else { - throw new \RuntimeException('Storage exists when inserting and does not exist on select... go away'); + throw new \RuntimeException('Storage could neither be inserted nor be selected from the database'); } } } |