summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-rpc-ops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index c9b01694436..5471291ab63 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -3121,10 +3121,14 @@ gf_cli_quota_cbk (struct rpc_req *req, struct iovec *iov,
if (global_state->mode & GLUSTER_MODE_XML)
goto xml_output;
- if (strcmp (rsp.op_errstr, ""))
+ if (strcmp (rsp.op_errstr, "")) {
cli_err ("quota command failed : %s", rsp.op_errstr);
- else
+ if (rsp.op_ret == -ENOENT)
+ cli_err ("please enter the path relative to "
+ "the volume");
+ } else {
cli_err ("quota command : failed");
+ }
goto out;
}