fix: Use debug instead of display for specific errors

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-10-03 17:55:35 +10:00
parent e8b9ec020d
commit 2aeaa648e6
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ impl Display for ApplicationDownloadError {
ApplicationDownloadError::IoError(error) => write!(f, "io error: {error}"),
ApplicationDownloadError::DownloadError(error) => write!(
f,
"Download failed with error {error}"
"Download failed with error {error:?}"
),
}
}

View File

@ -24,8 +24,8 @@ impl Display for ProcessError {
ProcessError::InvalidVersion => "Invalid game version",
ProcessError::IOError(error) => &error.to_string(),
ProcessError::InvalidPlatform => "This game cannot be played on the current platform",
ProcessError::FormatError(e) => &format!("Could not format template: {e}"),
ProcessError::OpenerError(error) => &format!("Could not open directory: {error}"),
ProcessError::FormatError(error) => &format!("Could not format template: {error:?}"),
ProcessError::OpenerError(error) => &format!("Could not open directory: {error:?}"),
ProcessError::InvalidArguments(arguments) => &format!("Invalid arguments in command {arguments}"),
};
write!(f, "{s}")