diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-02 19:37:33 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-07 10:14:51 +0300 |
commit | 142694d0958f666b2d5d247dee0e1817f76cde30 (patch) | |
tree | 25c1167a3cf0162d68a27a06372a47c10fb9e06c /lib | |
parent | 8357a253b3f4a23d026a7fdb467a24154f7a70b0 (diff) |
Fix the exception messages
Diffstat (limited to 'lib')
-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 1dfa9e1dd10..e9ed987a6ff 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -261,7 +261,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 9f2739bbedb..a2f1a9b6b0d 100644 --- a/lib/private/files/cache/storage.php +++ b/lib/private/files/cache/storage.php @@ -44,7 +44,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'); } } } |