Commit a8d1ede3 authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix the exception messages

parent 9f58097e
......@@ -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.');
}
}
}
......
......@@ -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');
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment