We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
open_kvs
1 parent f0cd9dc commit a75feb8Copy full SHA for a75feb8
src/rust/rust_kvs/src/kvs.rs
@@ -135,7 +135,9 @@ impl<J: KvsBackend> GenericKvs<J> {
135
Ok(map)
136
}
137
Err(e) => {
138
- if need_file.into() == OpenKvsNeedFile::Required {
+ // Propagate error if file was required or other error happened.
139
+ if need_file.into() == OpenKvsNeedFile::Required || e != ErrorCode::KvsFileReadError
140
+ {
141
eprintln!("error: file {filename:?} could not be read: {e:?}");
142
Err(e)
143
} else {
0 commit comments