Add more info to RpcError and ErrorReply

when do we get a KeyError here?