mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update error handlers
This commit is contained in:
parent
271acd50ed
commit
5a22e73b50
5 changed files with 37 additions and 37 deletions
|
|
@ -53,22 +53,22 @@ impl Browser {
|
|||
// Init writable database connection
|
||||
let mut connection = match profile_database_connection.write() {
|
||||
Ok(connection) => connection,
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
};
|
||||
|
||||
// Init new transaction
|
||||
let transaction = match connection.transaction() {
|
||||
Ok(transaction) => transaction,
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
};
|
||||
|
||||
// Init database structure
|
||||
match Database::init(&transaction) {
|
||||
Ok(database) => match transaction.commit() {
|
||||
Ok(_) => Arc::new(database),
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
},
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -262,11 +262,11 @@ impl Browser {
|
|||
|
||||
self.widget.clean(tx, &record.id);
|
||||
}
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(error) => todo!("{error}"),
|
||||
Err(e) => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -282,7 +282,7 @@ impl Browser {
|
|||
self.widget.restore(tx, &record.id);
|
||||
}
|
||||
}
|
||||
Err(error) => panic!("{error}"), // @TODO
|
||||
Err(e) => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ impl Browser {
|
|||
|
||||
self.widget.save(tx, &id);
|
||||
}
|
||||
Err(error) => panic!("{error}"), // @TODO
|
||||
Err(e) => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue