mirror of
https://github.com/roapi/roapi.git
synced 2026-06-05 21:04:02 +08:00
better error message for fs io source
This commit is contained in:
parent
ac761afea0
commit
3ff234798e
@ -40,7 +40,13 @@ where
|
||||
let fs_path = uri.path().to_string();
|
||||
let mut file_ext = ".".to_string();
|
||||
file_ext.push_str(t.extension()?);
|
||||
let files = build_file_list(&fs_path, &file_ext)?;
|
||||
debug!("building file list from path {}...", fs_path);
|
||||
let files = build_file_list(&fs_path, &file_ext).map_err(|e| {
|
||||
ColumnQError::FileStore(format!(
|
||||
"Failed to build file list from path `{}`: {}",
|
||||
fs_path, e
|
||||
))
|
||||
})?;
|
||||
|
||||
debug!("loading file partitions: {:?}", files);
|
||||
partitions_from_iterator(files.iter().map(|s| s.as_str()), partition_reader)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user