Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Display implementation should show the error's Display, not just the description #2

Closed
joshtriplett opened this issue Jul 12, 2016 · 1 comment

Comments

@joshtriplett
Copy link
Contributor

Given the following invocation of error_chain!:

error_chain! {
    types {
        Error, ErrorKind, ChainErr, Result;
    }
    links {}
    foreign_links {
        git2::Error, Git2, "git error";
    }
    errors {
    }
}

Producing an error from a git2::Error and then printing that error just produces "git error", without actually printing the underlying git2::Error. The Display implementation for an error produced from a foreign link should forward to the Display implementation for the linked error.

@brson
Copy link
Contributor

brson commented Jul 13, 2016

Thanks for moving this over to the new repo. I agree this would be better. Help wanted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants