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

Add custom panic handler #59

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Add custom panic handler #59

merged 1 commit into from
Nov 17, 2023

Conversation

hinto-janai
Copy link
Owner

On crashes (panics only), this will:

  • Capture the stack trace
  • Add addition information (OS, version, uptime, etc)
  • Print the info to STDERR
  • mass_panic!() all threads (aborts process)

and write it to crash.txt inside the Gupax folder on disk.

OS Path
Windows C:\Users\USER\AppData\Roaming\Gupax\crash.txt
macOS /Users/USER/Library/Application Support/Gupax/crash.txt
Linux /home/USER/.local/share/gupax/crash.txt

@hinto-janai hinto-janai merged commit 587700e into main Nov 17, 2023
1 of 5 checks passed
@hinto-janai hinto-janai deleted the crash branch November 24, 2023 15:18
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.

1 participant