mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 22:20:37 +00:00
DownloadError: align Display with anyhow impl
This commit is contained in:
committed by
Joonas Koivunen
parent
c3a027b8b4
commit
45582a0ec4
@@ -208,7 +208,14 @@ impl std::fmt::Display for DownloadError {
|
||||
write!(f, "Failed to download a remote file due to user input: {e}")
|
||||
}
|
||||
DownloadError::NotFound => write!(f, "No file found for the remote object id given"),
|
||||
DownloadError::Other(e) => write!(f, "Failed to download a remote file: {e:?}"),
|
||||
DownloadError::Other(e) => {
|
||||
write!(f, "Failed to download a remote file: ")?;
|
||||
if f.alternate() {
|
||||
write!(f, "{e:#}")
|
||||
} else {
|
||||
write!(f, "{e}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user