Skip to content

Commit

Permalink
chore: Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gschulze committed Sep 22, 2024
1 parent 888d14a commit 3b16cc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/geo_key_directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ impl GeoKeyDirectory {
) -> TiffResult<u16> {
if location_tag.is_some() {
return Err(TiffError::FormatError(TiffFormatError::Format(format!(
"Key `{key_tag:?}` did not have the expected value type."
"Key `{key_tag:?}` did not have the expected SHORT value type."
))));
}

Expand All @@ -484,7 +484,7 @@ impl GeoKeyDirectory {
) -> TiffResult<f64> {
if location_tag != Some(Tag::GeoDoubleParamsTag) {
return Err(TiffError::FormatError(TiffFormatError::Format(format!(
"Key `{key_tag:?}` did not have the expected value type."
"Key `{key_tag:?}` did not have the expected DOUBLE value type."
))));
}

Expand Down Expand Up @@ -514,7 +514,7 @@ impl GeoKeyDirectory {

if location_tag != Some(Tag::GeoAsciiParamsTag) {
return Err(TiffError::FormatError(TiffFormatError::Format(format!(
"Key `{key_tag:?}` did not have the expected value type."
"Key `{key_tag:?}` did not have the expected ASCII value type."
))));
}

Expand Down

0 comments on commit 3b16cc7

Please sign in to comment.