We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e173b commit 3122c01Copy full SHA for 3122c01
src/parseable/staging/reader.rs
@@ -85,14 +85,17 @@ impl MergedReverseRecordReader {
85
pub fn try_new(file_paths: &[PathBuf]) -> Self {
86
let mut readers = Vec::with_capacity(file_paths.len());
87
for path in file_paths {
88
- let Ok(file) = File::open(&path) else {
+ let Ok(file) = File::open(path) else {
89
warn!("Error when trying to read file: {path:?}");
90
continue;
91
};
92
93
- let Ok(reader) = get_reverse_reader(file) else {
94
- error!("Invalid file detected, ignoring it: {path:?}");
95
- continue;
+ let reader = match get_reverse_reader(file) {
+ Ok(r) => r,
+ Err(err) => {
96
+ error!("Invalid file detected, ignoring it: {path:?}; error = {err}");
97
+ continue;
98
+ }
99
100
101
readers.push(reader);
0 commit comments