mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-19 19:53:31 -04:00
Avoid suppressing panic messages (#2323)
* print `PanicInfo` using hook * update changelog
This commit is contained in:
committed by
GitHub
parent
0cb72922b7
commit
dfc25a6bb9
+2
-1
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user