mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
delegate child errors to parent handler
This commit is contained in:
parent
e1592425b9
commit
f9e35553da
7 changed files with 11 additions and 12 deletions
|
|
@ -3,7 +3,7 @@ mod error;
|
|||
mod gemini;
|
||||
|
||||
use database::Database;
|
||||
use error::Error;
|
||||
pub use error::Error;
|
||||
use gemini::Gemini;
|
||||
|
||||
use sqlite::{Connection, Transaction};
|
||||
|
|
@ -35,7 +35,7 @@ impl Identity {
|
|||
// Init gemini component
|
||||
let gemini = Rc::new(match Gemini::new(connection, profile_identity_id) {
|
||||
Ok(result) => result,
|
||||
Err(_) => return Err(Error::Gemini),
|
||||
Err(reason) => return Err(Error::Gemini(reason)),
|
||||
});
|
||||
|
||||
// Done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue