chore: improve image provider logging

This commit is contained in:
Jake Stanger 2023-03-04 23:13:35 +00:00
parent 83c5dceaa7
commit d4dd8c41ea
No known key found for this signature in database
GPG Key ID: C51FC8F9CB0BEA61

View File

@ -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),
),
}