error-chain
error-chain copied to clipboard
links { MyModuleError(my_module) }
trafficstars
If a module exports Error and ErrorKind, then it could be great to be able to write the following
error_chain! {
links {
Mymodule(my_module);
}
}
This should expand to the same as
error_chain! {
links {
Mymodule(my_module::Error, my_module::ErrorKind);
}
}
The whole links stuff is not as convenient to use as it could be. I don't plan to add your change because of the added special cases, but you can try a PR!