From 6ea9102b1cccc7fe44eddfa8d71d6520a7a3f7b5 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 26 Sep 2018 19:23:27 -0700 Subject: [PATCH] Add trace! when an error is mapped to GenericFailure --- src/rpc.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rpc.rs b/src/rpc.rs index 4eea85785f5002..ca12321ad126ea 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -173,7 +173,10 @@ impl RpcSol for RpcSolImpl { Ok(_) => RpcSignatureStatus::Confirmed, Err(BankError::ProgramRuntimeError) => RpcSignatureStatus::ProgramRuntimeError, Err(BankError::SignatureNotFound) => RpcSignatureStatus::SignatureNotFound, - Err(_) => RpcSignatureStatus::GenericFailure, + Err(err) => { + trace!("mapping {:?} to GenericFailure", err); + RpcSignatureStatus::GenericFailure + } }, ) }