File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,13 +79,15 @@ fn tx_from_value(value: Value) -> Result<Transaction> {
7979
8080#[ cfg( not( feature = "liquid" ) ) ]
8181fn deserialize_value < T : bitcoin:: consensus:: Decodable > ( hex : & str ) -> Result < T > {
82- Ok ( deserialize_hex ( hex) . chain_err ( || "failed to deserialize hex" ) ?)
82+ Ok ( deserialize_hex ( hex)
83+ . chain_err ( || format ! ( "failed to deserialize {}" , std:: any:: type_name:: <T >( ) ) ) ?)
8384}
8485
8586#[ cfg( feature = "liquid" ) ]
8687fn deserialize_value < T : elements:: encode:: Decodable > ( hex : & str ) -> Result < T > {
8788 let bytes = Vec :: from_hex ( hex) . chain_err ( || "invalid hex" ) ?;
88- Ok ( deserialize ( & bytes) . chain_err ( || "failed to deserialize" ) ?)
89+ Ok ( deserialize ( & bytes)
90+ . chain_err ( || format ! ( "failed to deserialize {}" , std:: any:: type_name:: <T >( ) ) ) ?)
8991}
9092
9193/// Parse JSONRPC error code, if exists.
You can’t perform that action at this time.
0 commit comments