Skip to content

Commit

Permalink
Add method name to error
Browse files Browse the repository at this point in the history
  • Loading branch information
daa84 committed Jan 5, 2018
1 parent 9b8a432 commit d3991cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ impl<R, W> Client<R, W>
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,
};
Expand Down

0 comments on commit d3991cf

Please sign in to comment.