mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +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()
|
||||
.insert(url, profile_identity_gemini_id)
|
||||
{
|
||||
Some(_) => Err(Error::Overwrite), // @TODO prevent?
|
||||
Some(key) => Err(Error::Overwrite(key)), // @TODO prevent?
|
||||
None => Ok(()),
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Overwrite,
|
||||
Overwrite(i64),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user