Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

human_panic does not include the panic message #216

Closed
Profpatsch opened this issue Nov 12, 2019 · 2 comments · Fixed by #289
Closed

human_panic does not include the panic message #216

Profpatsch opened this issue Nov 12, 2019 · 2 comments · Fixed by #289
Labels
bug Something isn't working P1 critical: next release tracking Tracking an issue in an upstream repo

Comments

@Profpatsch
Copy link
Collaborator

Profpatsch commented Nov 12, 2019

rust-cli/human-panic#55 (comment)

A user in that thread has an alternative implementation, which seems to be able to display the panic message.

@Profpatsch Profpatsch added bug Something isn't working P1 critical: next release tracking Tracking an issue in an upstream repo labels Nov 12, 2019
@Profpatsch
Copy link
Collaborator Author

Huh, I can’t really reproduce:

$ result/bin/lorri 
Well, this is embarrassing.

lorri had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/var/folders/fp/l6jc97c51_7c5dzvn71wwk_r0000gn/T/report-556f947e-1c3d-43b6-ac6b-69e362ee33ca.toml". Submit an issue or email with the subject of "lorri Crash Report" and include the report as an attachment.

- Homepage: https://github.com/target/lorri
- Authors: Graham Christensen <[email protected]>

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
Tweags-MacBook-Pro:lorri tweag$ cat /var/folders/fp/l6jc97c51_7c5dzvn71wwk_r0000gn/T/report-556f947e-1c3d-43b6-ac6b-69e362ee33ca.toml
name = 'lorri'
operating_system = 'unix:OSX'
crate_version = '0.1.0'
explanation = '''
Cause: blubb. Panic occurred in file 'src/main.rs' at line 25
'''
cause = 'Error cause could not be determined by the application.'
method = 'Panic'
backtrace = '''

   0: 0x10acccae6 - std::rt::lang_start::{{closure}}::ha6ca047ab4bd6112
   1: 0x10ad6b1d8 - std::panicking::try::do_call::h5a5c12b74feac12c
   2: 0x10ad7a43f - __rust_maybe_catch_panic
   3: 0x10ad6bb0a - std::rt::lang_start_internal::h984abae238c84001
   4: 0x10acd196c - main'''

I wonder if it depends on the kind of error message?

@curiousleo
Copy link
Collaborator

Fix: rust-cli/human-panic#66

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P1 critical: next release tracking Tracking an issue in an upstream repo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants