Seeker14491 / opener

Open a file or link in the system default program.
Apache License 2.0
54 stars 11 forks source link

opener::OpenError should implement std::error::Error #2

Closed LPGhatguy closed 5 years ago

LPGhatguy commented 5 years ago

Right now, OpenError only implements Fail. This works great for Cargo, which is a consumer of opener, and uses the failure crate.

I'm looking at using opener for the same functionality in rustup, which uses error-chain instead. To support this (and other consumers not using failure), OpenError should implement std's Error trait.

I'll go ahead and make a PR since it's an easy fix.