Skip to content

Commit

Permalink
chore: improve image provider logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Mar 4, 2023
1 parent 83c5dce commit d4dd8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<'a> ImageProvider<'a> {
Ok(ImageLocation::Local(PathBuf::from(input_name)))
}
None => get_desktop_icon_name(input_name).map_or_else(
|| Err(Report::msg("Unknown image type")),
|| Err(Report::msg(format!("Unknown image type: '{input}'"))),
|input| Self::get_location(&input, theme, size),
),
}
Expand Down

0 comments on commit d4dd8c4

Please sign in to comment.