mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Improve fmt::Display
impl for all Error types (#781)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9d9b72c768
commit
d9dd611b9e
6 changed files with 17 additions and 17 deletions
|
@ -27,17 +27,17 @@ mod utils;
|
|||
|
||||
#[derive(Debug, ThisError)]
|
||||
pub enum DownloadError {
|
||||
#[error(transparent)]
|
||||
#[error("Failed to extract zipfile: {0}")]
|
||||
Unzip(#[from] ZipError),
|
||||
|
||||
#[error(transparent)]
|
||||
#[error("Failed to download from remote: {0}")]
|
||||
Remote(#[from] RemoteError),
|
||||
|
||||
/// A generic I/O error.
|
||||
///
|
||||
/// - Code: `binstall::io`
|
||||
/// - Exit: 74
|
||||
#[error(transparent)]
|
||||
#[error("I/O Error: {0}")]
|
||||
Io(io::Error),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue