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

Include cause, whether on nightly or not #66

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

curiousleo
Copy link
Contributor

🐛 Set cause, whether we're on nightly or not.

Previously there were two cases with two sub-cases:

  • if compiled with nightly:
    • if there is a panic message: set it as cause
    • if there is no panic message: set cause to "Unknown"
  • if not compiled with nightly: set cause to "Error cause could not be determined by the application.", and also:
    • if there is a panic message: attach it straight to the expl string as "Cause: ."

That seems oddly complicated. This PR changes that to:

  • if there is a panic message (no matter if we're on nightly or not): set it as cause
  • if there is no panic message (no matter if we're on nightly or not): set cause to "Unknown"

Checklist

  • tests pass
  • tests and/or benchmarks are included
  • documentation is changed or added

Context

Vaguely related to #55.

Semver Changes

This changes the format of the message users see. I think it's a bugfix, but if changing what users see is considered a breaking change, then this is a breaking change.

src/lib.rs Outdated Show resolved Hide resolved
@curiousleo
Copy link
Contributor Author

PTAL

1 similar comment
@curiousleo
Copy link
Contributor Author

PTAL

@Profpatsch
Copy link

pinging rust-cli WG members @codesections @Dylan-DPC @matthiasbeyer @XAMPPRocky

Our users cannot submit bug reports because of this bug, please merge and do point release, or we have to drop this package.

Copy link
Member

@matthiasbeyer matthiasbeyer left a comment

Choose a reason for hiding this comment

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

I'd approve this change, though I'd do a minor version bump for this rather than a patchlevel bump.

@bjorn3 your review was requested, care to merge?

@bjorn3
Copy link

bjorn3 commented Jan 15, 2020

@matthiasbeyer I am not a member of @rust-cli.

@matthiasbeyer
Copy link
Member

Oh,... why were you picked as reviewer by github then? I cannot merge, unfortunately.

@bjorn3
Copy link

bjorn3 commented Jan 15, 2020

I submitted a review, so github shows me in the list of reviewers.

@codesections
Copy link
Member

I also don't have the correct permissions to merge this PR. It looks like @spacekookie would be able to, based on commit history.

@Dylan-DPC-zz
Copy link

Looks good to me. Merging it. Thanks @matthiasbeyer and special mention to @bjorn3 for showing up in the elite list of reviewers 😉

@Dylan-DPC-zz Dylan-DPC-zz merged commit 5195002 into rust-cli:master Jan 15, 2020
@curiousleo curiousleo deleted the cause-nightly-or-not branch January 15, 2020 16:01
@Profpatsch
Copy link

Can I ask for a version bump nonetheless? #65

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.

6 participants