mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-04 05:22:20 +00:00
Avoid suppressing panic messages (#2323)
* print `PanicInfo` using hook * update changelog
This commit is contained in:
parent
6086694d40
commit
da548d20f4
@ -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
|
||||
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user