mythril icon indicating copy to clipboard operation
mythril copied to clipboard

Evaluate using Failure for error handling

Open ALSchwalm opened this issue 6 years ago • 2 comments

I would like to be better able to preserve context for errors. The failure crate seems like a good solution here, but I'm not sure how practical it is to use no_std (or if it really buys us much over just directly using our Error type).

ALSchwalm avatar Nov 01 '19 03:11 ALSchwalm

Consider using https://github.com/dtolnay/anyhow which provides only failure::Error and some sugar around that. It also supports no_std.

mehcode avatar Nov 01 '19 17:11 mehcode

That looks like it might be a good fit. Thanks!

ALSchwalm avatar Nov 03 '19 00:11 ALSchwalm