dtolnay / path-to-error

Find out path at which a deserialization error occurred
Apache License 2.0
320 stars 12 forks source link

Error doesn't implement `std::error::Error` #2

Closed vorner closed 5 years ago

vorner commented 5 years ago

Hello

I'd like to ask if not implementing std::error::Error on the Error type is just an omission or if it is on purpose. If it's omission, I can submit a MR, but I'm not 100% sure what to use as the Display ‒ maybe "{}: {}", self.path(), self.inner()?

dtolnay commented 5 years ago

I would accept a fix for this. That message looks good to me.