[Pkg-owncloud-commits] [owncloud] 05/18: Fix the exception messages

David Prévot taffit at moszumanska.debian.org
Thu Apr 16 02:06:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 142694d0958f666b2d5d247dee0e1817f76cde30
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Thu Apr 2 18:37:33 2015 +0200

    Fix the exception messages
---
 lib/private/files/cache/cache.php   | 2 +-
 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 1dfa9e1..e9ed987 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 9f2739b..a2f1a9b 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');
 				}
 			}
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list