mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
delegate some errors to the up level
This commit is contained in:
parent
5effd63575
commit
43c081d73b
3 changed files with 6 additions and 9 deletions
|
|
@ -52,10 +52,7 @@ impl Bookmark {
|
|||
}
|
||||
// Otherwise, create new record
|
||||
} else {
|
||||
match self
|
||||
.database
|
||||
.add(DateTime::now_local().unwrap(), request.into())
|
||||
{
|
||||
match self.database.add(DateTime::now_local()?, request.into()) {
|
||||
Ok(id) => match self.memory.add(request.into(), id) {
|
||||
Ok(_) => Ok(true),
|
||||
Err(_) => panic!(), // unexpected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue