Repository navigation
Added panic message to failures. - #10587
Merged
Merged
Conversation
|
Heads up! This PR modifies the following files:
|
Contributor
Author
|
This will need rebased after #10572 lands. r? @Manishearth |
| fn send_on_failure(&mut self, value: T) { | ||
| self.send(value).unwrap(); | ||
| // Discard any errors to avoid double-panic | ||
| let _ = self.send(value); |
Contributor
Author
There was a problem hiding this comment.
I'm a bit worried about even putting a warn! here. Anything that panics in a panic handler takes the entire process down with it. If the send fails, chances are the entire constellation is shutting down.
This was referenced Apr 14, 2016
Contributor
Author
|
#10572 is on hold, so I think we should move forward with this PR. @Manishearth? |
Member
|
@bors-servo r+ |
Contributor
|
📌 Commit 8c0fa01 has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Apr 14, 2016
…earth Added panic message to failures. Added the panic message to failures. This is a step towards #10334, since it gives us access to the panic error message when we fire a `mozbrowsererror` event. The remaining steps are also to record the backtrace, and to report the failure in the event. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10587) <!-- Reviewable:end -->
Contributor
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the panic message to failures. This is a step towards #10334, since it gives us access to the panic error message when we fire a
mozbrowsererrorevent. The remaining steps are also to record the backtrace, and to report the failure in the event.This change is