From 95c41b75e12d2cee4758c80cf36ab5e3331565e5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 18 Jul 2023 02:22:41 -0400 Subject: tweak some messages --- src/bin/rbw/commands.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 814dd74..03f07b3 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -563,12 +563,9 @@ impl DecryptedCipher { fn val_display_or_store(clipboard: bool, password: &str) -> bool { if clipboard { match clipboard_store(password) { - Ok(_) => { - println!("The results are already stored on the clipboard."); - true - } + Ok(()) => true, Err(e) => { - println!("{e}"); + eprintln!("{e}"); false } } @@ -745,11 +742,11 @@ pub fn config_unset(key: &str) -> anyhow::Result<()> { fn clipboard_store(val: &str) -> anyhow::Result<()> { let mut ctx = ClipboardContext::new().map_err(|e| { - anyhow::anyhow!("Couldn't create clipboard context: {e}") + anyhow::anyhow!("couldn't create clipboard context: {e}") })?; ctx.set_contents(val.to_owned()).map_err(|e| { - anyhow::anyhow!("Couldn't store value to clipboard: {e}") + anyhow::anyhow!("couldn't store value to clipboard: {e}") })?; Ok(()) -- cgit v1.2.3-54-g00ecf