Improve argument handling
This commit is contained in:
parent
73f524c95e
commit
0ad6d5e3e0
1 changed files with 3 additions and 3 deletions
|
|
@ -96,12 +96,12 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
Ok(path) => match url::Url::from_file_path(&path) {
|
Ok(path) => match url::Url::from_file_path(&path) {
|
||||||
Ok(url) => Some(url),
|
Ok(url) => Some(url),
|
||||||
Err(()) => {
|
Err(()) => {
|
||||||
log::warn!("failed to parse argument {:?}", arg);
|
log::warn!("failed to parse path {:?}", path);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(_) => {
|
Err(err) => {
|
||||||
log::warn!("failed to parse argument {:?}", arg);
|
log::warn!("failed to parse argument {:?}: {}", arg, err);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue