Skip to content

Commit

Permalink
updated panic message help text
Browse files Browse the repository at this point in the history
  • Loading branch information
naturallymitchell committed Feb 27, 2019
1 parent 4281c07 commit 70f12f1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 13 additions & 0 deletions panic-message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Well, this is embarrassing...

%NAME% had a problem and crashed. To help us figure out what happened and fix the problem you can send us a crash report.

We have generated a report file at "%PATH%".

To send it, please visit https://github.com/foundpatterns/torchbear/issues and create a new issue called, "Crash Report", add any info about how it happened that might help us, and include the generated report as an attachment.

If you have any questions, you can ask for help in our Discord chat server, at https://discord.gg/f6XSuWs

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

Thank you kindly!
5 changes: 0 additions & 5 deletions panic.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl ApplicationBuilder {
data.insert("%NAME%", env!("CARGO_PKG_NAME"));
data.insert("%GITHUB%", env!("CARGO_PKG_REPOSITORY"));

error::create_hook(include_str!("../panic.txt"), Some(data), |path, data| {
error::create_hook(include_str!("../panic-message.txt"), Some(data), |path, data| {
if let Some(path) = path {
let mut fs = fs::File::create(path)?;
fs.write_all(data.as_bytes())?;
Expand Down

0 comments on commit 70f12f1

Please sign in to comment.