diff --git a/src/commands/list.rs b/src/commands/list.rs index c35d870..c20b0a0 100644 --- a/src/commands/list.rs +++ b/src/commands/list.rs @@ -296,13 +296,22 @@ impl SqliteClipboardDb { Some(ref m) => MimeType::Specific(m.clone()), None => MimeType::Text, }; - let _ = opts + let copy_result = opts .copy(Source::Bytes(contents.clone().into()), mime_type); - // Show notification - let _ = Notification::new() - .summary("Stash") - .body("Copied entry to clipboard") - .show(); + match copy_result { + Ok(()) => { + let _ = Notification::new() + .summary("Stash") + .body("Copied entry to clipboard") + .show(); + }, + Err(e) => { + let _ = Notification::new() + .summary("Stash") + .body(&format!("Failed to copy entry: {e}")) + .show(); + }, + } } } },