File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ use std::any::Any;
5
5
/// We want to provide as much debug information as possible
6
6
/// as those cases are not expected to happen during healthy operations.
7
7
pub fn handle_vm_panic ( what : & str , err : Box < dyn Any + Send + ' static > ) {
8
- let err = match ( err. downcast_ref :: < & str > ( ) , err. downcast_ref :: < String > ( ) ) {
9
- ( Some ( str) , ..) => * str,
8
+ let err: & str = match ( err. downcast_ref :: < & str > ( ) , err. downcast_ref :: < String > ( ) ) {
9
+ ( Some ( str) , ..) => str,
10
10
( .., Some ( str) ) => str,
11
11
( None , None ) => "[unusable panic payload]" ,
12
12
} ;
13
13
14
14
eprintln ! ( "Panic in {what}:" ) ;
15
- eprintln ! ( "{err:? }" ) ;
15
+ eprintln ! ( "{err}" ) ;
16
16
eprintln ! (
17
17
"This indicates a panic in during the operations of libwasmvm/cosmwasm-vm.
18
18
Such panics must not happen and are considered bugs. If you see this in any real-world or
You can’t perform that action at this time.
0 commit comments