Expand description
A panic hook that asks ChatGPT what went wrong.
Call install near the start of main. When a thread panics, the crate preserves the
previously installed panic hook and opens a new browser tab containing the panic message and
source location.
chatgpt_panic_hook::install();
panic!("whoops");§Privacy
Panic messages and source paths can contain sensitive information. Installing this hook sends
that text to chatgpt.com as a URL query parameter. Do not install it in programs that may
handle secrets or private user data.
Functions§
- install
- Installs the ChatGPT panic hook.