diff --git a/src/main.rs b/src/main.rs index f65cb4a..8e6354b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,12 +96,12 @@ pub fn main() -> Result<(), Box> { Ok(path) => match url::Url::from_file_path(&path) { Ok(url) => Some(url), Err(()) => { - log::warn!("failed to parse argument {:?}", arg); + log::warn!("failed to parse path {:?}", path); None } }, - Err(_) => { - log::warn!("failed to parse argument {:?}", arg); + Err(err) => { + log::warn!("failed to parse argument {:?}: {}", arg, err); None } },