Crates.io | sp-panic-handler |
lib.rs | sp-panic-handler |
version | 13.0.0 |
source | src |
created_at | 2020-02-27 00:54:16.434567 |
updated_at | 2024-01-23 00:58:08.526409 |
description | Custom panic hook with bug report link |
homepage | https://substrate.io |
repository | https://github.com/paritytech/polkadot-sdk.git |
max_upload_size | |
id | 212898 |
size | 10,968 |
Custom panic hook with bug report link
This crate provides the [set
] function, which wraps around [std::panic::set_hook
] and
sets up a panic hook that prints a backtrace and invites the user to open an issue to the
given URL.
By default, the panic handler aborts the process by calling [std::process::exit
]. This can
temporarily be disabled by using an [AbortGuard
].
License: Apache-2.0