mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
Fix the exception messages
This commit is contained in:
parent
9f58097e4d
commit
a8d1ede347
2 changed files with 2 additions and 2 deletions
2
lib/private/files/cache/cache.php
vendored
2
lib/private/files/cache/cache.php
vendored
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
lib/private/files/cache/storage.php
vendored
2
lib/private/files/cache/storage.php
vendored
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue