From: Abhishek Lekshmanan Date: Wed, 27 Jan 2016 09:26:15 +0000 (+0100) Subject: mon: cleanup set-quota error msg X-Git-Tag: v10.1.0~355^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a917ccfce50078bd74d3fb3c22a6ce5d124faaee;p=ceph.git mon: cleanup set-quota error msg When we send in an unrecognized field for set-quota, specify that the options should be `max_bytes` or `max_objects`. This doesn't affect the ceph-cli as the choices are caught at an earlier stage, however the error message is seen while reaching the cluster via rados api for eg. Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 77e26de70a9f..644bb968fdd1 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -7354,7 +7354,7 @@ done: string field; cmd_getval(g_ceph_context, cmdmap, "field", field); if (field != "max_objects" && field != "max_bytes") { - ss << "unrecognized field '" << field << "'; max_bytes of max_objects"; + ss << "unrecognized field '" << field << "'; should be 'max_bytes' or 'max_objects'"; err = -EINVAL; goto reply; }