Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add context to more errors #571

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

Merged
yoshuawuyts merged 3 commits into async-rs:master from killercup:more-errors
Nov 27, 2019
Merged

Conversation

Copy link
Contributor

@killercup killercup commented Nov 20, 2019

Pretty mechanical additions and by no means exhaustive: I bascially just wanted to cover the APIs I end up using quite often :)

For a future PR it might be interesting to add a test that shows that our errors include the correct sources, and that they might even work well with std backtraces.

cc #569

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really good work!

Left a few commends regarding capitalization. Std doesn't capitalize errors, so probably neither should we (and at the very least we should be consistent).

Also left a few comments where it'd be nice to know which addresses we couldn't resolve. Unsure if we can retrieve that information, but if we can that'd be 💯.

Thanks so much; looking forward to this patch!

Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
@killercup killercup force-pushed the more-errors branch 3 times, most recently from 71e626a to 94791c8 Compare November 25, 2019 22:25
Moves the point of adding error context to the net::addr module so that
we have access to the raw address input and can include it in the error
message.
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is excellent; thanks so much!

@yoshuawuyts yoshuawuyts merged commit 46cafff into async-rs:master Nov 27, 2019
@killercup killercup deleted the more-errors branch November 27, 2019 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@yoshuawuyts yoshuawuyts yoshuawuyts approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /