mirror of https://github.com/Aloxaf/silicon
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:
parent
e195b5e0b0
commit
1a9077a742
2
LICENSE
2
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
|
||||
|
|
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue