error-chain
error-chain copied to clipboard
Reference description in display
Hi, is it possible to get a reference to the description string in error_chain? I want to do the following for example:
error_chain!{
errors {
Foo(details: String) {
description("foo happened")
display("{}: {}", description, details) // description should be what is in description(..) above
}
}
}