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 <>
This commit is contained in:
LhAllant 2023-11-22 01:59:08 -05:00 committed by GitHub
parent e195b5e0b0
commit 1a9077a742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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(())
}