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

Fix self-profile collection #1151

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

Mark-Simulacrum
Copy link
Member

Resolves #1150, introduced in #1142.

It may be worth using a proper enum for the wrapper, but it doesn't seem immediately pressing to do so.

It doesn't seem obvious that there's a nice way to test this/assert we're getting it right, so leave that out of scope for now.

Copy link
Member

@rylev rylev left a comment

Choose a reason for hiding this comment

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

Looks good to me. Can we make improvements to the panicking code so that the error is more self-evident from the user error message if it should come back?

@Mark-Simulacrum Mark-Simulacrum merged commit 6d95a0f into rust-lang:master Jan 18, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the fix-self-profile branch January 18, 2022 18:09
@Mark-Simulacrum
Copy link
Member Author

Yeah, the error message could be improved -- I think right now we just don't display anything except the status code anyway (502, on panic).

@nnethercote
Copy link
Contributor

Sorry about this, and thanks for fixing it!

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

Successfully merging this pull request may close these issues.

Detailed comparison view broken
3 participants