diff options
Diffstat (limited to 'cli/src/cli-cmd.c')
-rw-r--r-- | cli/src/cli-cmd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index ec2d58ae91c..b415569be28 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -290,11 +290,15 @@ cli_cmd_await_response (unsigned time) &ts); } + if (!cmd_done) { + if (ret == ETIMEDOUT) + cli_out ("Error : Request timed out"); + else + cli_out ("Error : Command returned with error code:%d", + ret); + } cmd_done = 0; - if (ret) - return ret; - return cli_op_ret; } |