mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +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
|
|
@ -6,7 +6,7 @@ mod memory;
|
|||
|
||||
use auth::Auth;
|
||||
use database::Database;
|
||||
use error::Error;
|
||||
pub use error::Error;
|
||||
|
||||
use memory::Memory;
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ impl Gemini {
|
|||
// Init components
|
||||
let auth = match Auth::new(connection.clone()) {
|
||||
Ok(auth) => Rc::new(auth),
|
||||
Err(_) => return Err(Error::AuthInit), // @TODO
|
||||
Err(reason) => return Err(Error::AuthInit(reason)), // @TODO
|
||||
};
|
||||
let database = Rc::new(Database::new(connection, profile_identity_id.clone()));
|
||||
let memory = Rc::new(Memory::new());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue