]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: make MonMap error message about unspecified monitors less specific.
authorGreg Farnum <greg@inktank.com>
Mon, 19 Aug 2013 17:21:16 +0000 (10:21 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 19 Aug 2013 17:21:16 +0000 (10:21 -0700)
The error message helpfully references the -m and -c CLI options for
specifying monitors, but this code can be invoked from non-core librados
client applications so that's unfortunately not kosher. Remove the
reference.

Fixes #5979.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/MonMap.cc

index d3978afb602cea3249f67a5770492cee3f4ce089..7012e0545cf078438ad8ab253fb9f98fa05d14cf 100644 (file)
@@ -329,8 +329,7 @@ int MonMap::build_initial(CephContext *cct, ostream& errout)
   }
 
   if (size() == 0) {
-    errout << "unable to find any monitors in conf. "
-        << "please specify monitors via -m monaddr or -c ceph.conf" << std::endl;
+    errout << "no monitors specified to connect to." << std::endl;
     return -ENOENT;
   }
   return 0;