mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
handle error details
This commit is contained in:
parent
3191ff0ff0
commit
b7900489b0
2 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ impl Auth {
|
||||||
// Done
|
// Done
|
||||||
Ok(profile_identity_gemini_auth_id)
|
Ok(profile_identity_gemini_auth_id)
|
||||||
}
|
}
|
||||||
Err(_) => return Err(Error::DatabaseRecordsRead(url.to_string())),
|
Err(reason) => return Err(Error::DatabaseRecordsRead(url.to_string(), reason)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ impl Auth {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(_) => return Err(Error::DatabaseIndex),
|
Err(reason) => return Err(Error::DatabaseIndex(reason)),
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
DatabaseIndex,
|
DatabaseIndex(sqlite::Error),
|
||||||
DatabaseRecordCreate(i64, String, sqlite::Error),
|
DatabaseRecordCreate(i64, String, sqlite::Error),
|
||||||
DatabaseRecordDelete(i64, sqlite::Error),
|
DatabaseRecordDelete(i64, sqlite::Error),
|
||||||
DatabaseRecordsRead(String),
|
DatabaseRecordsRead(String, sqlite::Error),
|
||||||
MemoryIndex(super::memory::Error),
|
MemoryIndex(super::memory::Error),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue