From 80e013739dd6d4d400d88d0f581361cb5c637e9f Mon Sep 17 00:00:00 2001 From: gardners Date: Fri, 18 May 2012 17:08:45 +0930 Subject: [PATCH] improved error message reporting. --- commandline.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commandline.c b/commandline.c index 03ab3955..c1848aa9 100644 --- a/commandline.c +++ b/commandline.c @@ -1451,6 +1451,13 @@ int app_node_info(int argc, const char *const *argv, struct command_line_option if (!overlay_mdp_send(&m2,MDP_AWAITREPLY,125)) { int bytes=m2.in.payload_length; + if (m2.packetTypeAndFlags!=MDP_TX) { + WHYF("MDP returned an unexpected message (type=0x%x)", + m2.packetTypeAndFlags); + if (m2.packetTypeAndFlags==MDP_ERROR) + WHYF("MDP message is return/error: %d:%s", + m2.error.error,m2.error.message); + } if ((bytes+1)