Avoid suppressing panic messages (#2323)

* print `PanicInfo` using hook
* update changelog
This commit is contained in:
Christian Poveda Ruiz 2022-10-24 11:52:46 -05:00 committed by GitHub
parent 6086694d40
commit da548d20f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -153,6 +153,7 @@
* Regex inputs are sanitized so alternation (`a|b`) is handled correctly but
wildcard patterns (`*`) are now considered invalid.
* the `ParseCallbacks`trait does not require to implement `UnwindSafe`.
## Removed

View File

@ -41,10 +41,11 @@ pub fn main() {
#[cfg(feature = "logging")]
clang_version_check();
std::panic::set_hook(Box::new(move |_info| {
std::panic::set_hook(Box::new(move |info| {
if verbose {
print_verbose_err()
}
println!("{}", info);
}));
let bindings =