cli: for rpc timeout throw a time out message
Change-Id: I9660df1c3b2707583bd95806011b650cd1a2df1b BUG: 1161037 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/9017 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
This commit is contained in:
parent
60f12e0eaf
commit
b3ce1bfeaa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user