diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index fe474cef0a39c..6fcc30dd74e07 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -4817,7 +4817,11 @@ int main(int argc, char **argv) string user_str = user_id.to_str(); int ret = store->cls_user_get_header(user_str, &header); if (ret < 0) { - cerr << "ERROR: can't read user header: " << cpp_strerror(-ret) << std::endl; + if (ret == -ENOENT) { /* in case of ENOENT */ + cerr << "User has not been initialized or user does not exist" << std::endl; + } else { + cerr << "ERROR: can't read user: " << cpp_strerror(ret) << std::endl; + } return -ret; }