diff --git a/src/profile/identity/gemini/auth/memory.rs b/src/profile/identity/gemini/auth/memory.rs index e01611b1..3a080ba8 100644 --- a/src/profile/identity/gemini/auth/memory.rs +++ b/src/profile/identity/gemini/auth/memory.rs @@ -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(()), } } diff --git a/src/profile/identity/gemini/auth/memory/error.rs b/src/profile/identity/gemini/auth/memory/error.rs index 4d8262af..0952f998 100644 --- a/src/profile/identity/gemini/auth/memory/error.rs +++ b/src/profile/identity/gemini/auth/memory/error.rs @@ -1,4 +1,4 @@ #[derive(Debug)] pub enum Error { - Overwrite, + Overwrite(i64), }