Merge pull request #15383 from owncloud/fix-exception-message

Update exception messages to better reflect and describe the problem
This commit is contained in:
Morris Jobke 2015-04-03 10:15:23 +02:00
commit a2087f30d1
2 changed files with 2 additions and 2 deletions

View 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.');
}
}
}

View 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');
}
}
}