File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -991,8 +991,8 @@ impl ChainSource {
991
991
) ;
992
992
} ,
993
993
Err ( e) => match e {
994
- esplora_client:: Error :: Reqwest ( err ) => {
995
- if err . status ( ) == reqwest :: StatusCode :: from_u16 ( 400 ) . ok ( ) {
994
+ esplora_client:: Error :: HttpResponse { status , message } => {
995
+ if status == 400 {
996
996
// Log 400 at lesser level, as this often just means bitcoind already knows the
997
997
// transaction.
998
998
// FIXME: We can further differentiate here based on the error
@@ -1001,13 +1001,13 @@ impl ChainSource {
1001
1001
log_trace ! (
1002
1002
logger,
1003
1003
"Failed to broadcast due to HTTP connection error: {}" ,
1004
- err
1004
+ message
1005
1005
) ;
1006
1006
} else {
1007
1007
log_error ! (
1008
1008
logger,
1009
- "Failed to broadcast due to HTTP connection error: {}" ,
1010
- err
1009
+ "Failed to broadcast due to HTTP connection error: {} - {} " ,
1010
+ status , message
1011
1011
) ;
1012
1012
}
1013
1013
log_trace ! (
You can’t perform that action at this time.
0 commit comments