From d3991cf0c81329baaa78dea905b9845ac1667a45 Mon Sep 17 00:00:00 2001 From: daa Date: Fri, 5 Jan 2018 15:41:24 +0300 Subject: [PATCH] Add method name to error --- src/rpc/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/client.rs b/src/rpc/client.rs index 989296e..b9c2fff 100644 --- a/src/rpc/client.rs +++ b/src/rpc/client.rs @@ -112,11 +112,11 @@ impl Client Err(mpsc::TryRecvError::Empty) => { thread::sleep(delay); if instant.elapsed() >= dur { - return Err(Value::from("Wait timeout")); + return Err(Value::from(format!("Wait timeout ({})", method))); } } Err(mpsc::TryRecvError::Disconnected) => { - return Err(Value::from("Channel disconnected")) + return Err(Value::from(format!("Channel disconnected ({})", method))) } Ok(val) => return val, };