These are chat archives for rust-lang/rust

26th
Mar 2017
David James
@xpe
Mar 26 2017 02:38
How do I extract the parse error from toml-rs? e.g. match toml::from_str(s) { Err(e) => ???. I would have expected e.description to work but it did not.
David James
@xpe
Mar 26 2017 02:43
^ asked the above question, here: alexcrichton/toml-rs#156
Jason Ozias
@CraZySacX
Mar 26 2017 02:44
Did you include use std::error::Error.
Also, it's a function, not a field. so e.description()
David James
@xpe
Mar 26 2017 02:50
@CraZySacX thanks on both counts. This compiles; now I'm getting, literally "a custom error" from e.description().
Jason Ozias
@CraZySacX
Mar 26 2017 02:51
Yeah, not much help there. That comes from the lib.