diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-18 02:22:41 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-07-18 02:22:41 -0400 |
commit | 95c41b75e12d2cee4758c80cf36ab5e3331565e5 (patch) | |
tree | 033e7e8e418fddb4047e62b88e1feba9dd1573f5 | |
parent | 6a8036f6362edcc13e0af343270b87c29efbe1b6 (diff) | |
download | rbw-95c41b75e12d2cee4758c80cf36ab5e3331565e5.tar.gz rbw-95c41b75e12d2cee4758c80cf36ab5e3331565e5.zip |
tweak some messages
-rw-r--r-- | src/bin/rbw/commands.rs | 11 |
1 files 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(()) |