Open gwenn opened 8 years ago
I don't understand, it's expected because the two calls don't output the same Error. BTW, since ReadlineError
can contain a io::Error
, you can do
fs::create_dir_all(history_path.parent().unwrap())
.map_err(Into::into)
.and_then(|_| readline.save_history(&history_path))
A better improvement would be to use https://github.com/brson/error-chain. Waiting for https://github.com/brson/error-chain/issues/53.
Waiting for https://github.com/brson/error-chain/pull/55 to be merged.
@Yamakaky both https://github.com/rust-lang-deprecated/error-chain/issues/53 and https://github.com/rust-lang-deprecated/error-chain/pull/55 are merged.
Is this ticket still relevant?
error-chain doesn't seem to be used anymore so no !
@gwenn, @Yamakaky says this ticket isn't relevant any more.
Can it be closed?
See https://github.com/danburkert/ksql/blob/master/src/main.rs#L199