Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hilariously long error from std:net:unarchive #19

Open
calebzulawski opened this issue Mar 28, 2023 · 1 comment
Open

Hilariously long error from std:net:unarchive #19

calebzulawski opened this issue Mar 28, 2023 · 1 comment

Comments

@calebzulawski
Copy link
Collaborator

error: error: error: request or response body error: error reading a body from connection: protocol error: unspecific protocol error detected

I'm sure each of these layers of error probably means something, in this scenario it doesn't matter so much but maybe something like anyhow's error contexts could be used to nest errors more ergonomically

@afranchuk
Copy link
Collaborator

I think that may be a result of round-tripping in the error type. ergo_runtime::Error has a Display which looks like error: <message>, and if that error has to be converted to Box<dyn std::error::Error> to pass through an external library then that's basically what would end up happening. Internally ergo_runtime::Error can accommodate nested errors and context nicely.

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

No branches or pull requests

2 participants