mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
add key info to error enum
This commit is contained in:
parent
ebe8d849d6
commit
e1592425b9
@ -28,7 +28,7 @@ impl Memory {
|
|||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.insert(url, profile_identity_gemini_id)
|
.insert(url, profile_identity_gemini_id)
|
||||||
{
|
{
|
||||||
Some(_) => Err(Error::Overwrite), // @TODO prevent?
|
Some(key) => Err(Error::Overwrite(key)), // @TODO prevent?
|
||||||
None => Ok(()),
|
None => Ok(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
Overwrite,
|
Overwrite(i64),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user