From f92277e019940b518e5df8a2b75fbe4b6f905434 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Sun, 17 Jan 2016 19:47:48 -0800 Subject: [PATCH] Clarify error message --- tarpc/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarpc/src/macros.rs b/tarpc/src/macros.rs index 4516575..42f8191 100644 --- a/tarpc/src/macros.rs +++ b/tarpc/src/macros.rs @@ -26,7 +26,7 @@ macro_rules! client_stubs { if let __Reply::$fn_name(reply) = reply { Ok(reply) } else { - panic!("Unexpected reply to {}: {:?}", stringify!($fn_name), reply); + panic!("Incorrect reply variant returned from protocol::Clientrpc; expected `{}`, but got {:?}", stringify!($fn_name), reply); } } )*);