From 1a9077a7423b0ae027cad395c2468713aa98344d Mon Sep 17 00:00:00 2001 From: LhAllant <107412122+LhAlant@users.noreply.github.com> Date: Wed, 22 Nov 2023 01:59:08 -0500 Subject: [PATCH] fix: a vague error message and updated copyright year (#240) * Propose a tip for vague error message with xclip missing * misc: update copyright year to 2023 --------- Co-authored-by: LhAlant <> --- LICENSE | 2 +- src/bin/silicon/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 173e420..7c678d2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019-2022 Aloxaf +Copyright (c) 2019-2023 Aloxaf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/bin/silicon/main.rs b/src/bin/silicon/main.rs index b03408b..2ce317f 100644 --- a/src/bin/silicon/main.rs +++ b/src/bin/silicon/main.rs @@ -35,7 +35,7 @@ pub fn dump_image_to_clipboard(image: &DynamicImage) -> Result<(), Error> { temp.path().to_str().unwrap(), ]) .status() - .map_err(|e| format_err!("Failed to copy image to clipboard: {}", e))?; + .map_err(|e| format_err!("Failed to copy image to clipboard : {} (Tip: do you have xclip installed ?)", e))?; Ok(()) }