]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix the exception messages
authorJoas Schilling <nickvergessen@owncloud.com>
Thu, 2 Apr 2015 16:37:33 +0000 (18:37 +0200)
committerJoas Schilling <nickvergessen@owncloud.com>
Thu, 2 Apr 2015 16:40:06 +0000 (18:40 +0200)
lib/private/files/cache/cache.php
lib/private/files/cache/storage.php

index 1d0122689700899ad4543a5b7c0cfccb7e9ab705..9a785d071f7b59ecc08cfb54fc9896c66240e0d9 100644 (file)
@@ -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.');
                        }
                }
        }
index 86803b5f01dacda0f92f09b9494c1c2276769a0c..2007f0c9e3dbd1fa461cbcd15ea40c58667cdf8e 100644 (file)
@@ -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');
                                }
                        }
                }