Skip to content

Improved error handling.

Jeremy Soller requested to merge goyox86/failure into master

Created by: goyox86

So basically this is the first take on error handling. I decided to give it a try to failure and I think is awesome.

Anyways I'm still not happy with the error enum. Might be too detailed. There is still a case in which I neeed to see why something failed. Basically the error I get from the library is a trait object (failure::Error) and I have to downcast to act on the error type, and that's the part I'm not sure yet, I need to continue exploring failure to see if I can improve the usability whenever you want to act based on the types of errors. But looks promising! at least from the library that generates the errors, it is much much nicer than the Error + Debug + Display + From combo!

Just take a look @jackpot51 and @MggMuggins lets iterate this PR! \o/

Ah! I've migrated userutils locally to this and seems to be working fine look at the diff diff

Merge request reports