mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-11 04:52:09 +10:00
fix: Use debug instead of display for specific errors
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -42,7 +42,7 @@ impl Display for ApplicationDownloadError {
|
|||||||
ApplicationDownloadError::IoError(error) => write!(f, "io error: {error}"),
|
ApplicationDownloadError::IoError(error) => write!(f, "io error: {error}"),
|
||||||
ApplicationDownloadError::DownloadError(error) => write!(
|
ApplicationDownloadError::DownloadError(error) => write!(
|
||||||
f,
|
f,
|
||||||
"Download failed with error {error}"
|
"Download failed with error {error:?}"
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,8 +24,8 @@ impl Display for ProcessError {
|
|||||||
ProcessError::InvalidVersion => "Invalid game version",
|
ProcessError::InvalidVersion => "Invalid game version",
|
||||||
ProcessError::IOError(error) => &error.to_string(),
|
ProcessError::IOError(error) => &error.to_string(),
|
||||||
ProcessError::InvalidPlatform => "This game cannot be played on the current platform",
|
ProcessError::InvalidPlatform => "This game cannot be played on the current platform",
|
||||||
ProcessError::FormatError(e) => &format!("Could not format template: {e}"),
|
ProcessError::FormatError(error) => &format!("Could not format template: {error:?}"),
|
||||||
ProcessError::OpenerError(error) => &format!("Could not open directory: {error}"),
|
ProcessError::OpenerError(error) => &format!("Could not open directory: {error:?}"),
|
||||||
ProcessError::InvalidArguments(arguments) => &format!("Invalid arguments in command {arguments}"),
|
ProcessError::InvalidArguments(arguments) => &format!("Invalid arguments in command {arguments}"),
|
||||||
};
|
};
|
||||||
write!(f, "{s}")
|
write!(f, "{s}")
|
||||||
|
|||||||
Reference in New Issue
Block a user