From b61cbe704cafeb8b2ac3319cb00220be7083c304 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 24 Jul 2017 22:56:39 +0800 Subject: [PATCH] mon/PGMap: be helpful for "pg ls *" CLIs Signed-off-by: xie xingguo --- src/mon/PGMap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 076c618ce84..24da57c5333 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -3782,7 +3782,8 @@ int process_pg_map_command( } else { int filter = pg_string_state(state_str); if (filter < 0) { - *ss << "'" << state_str << "' is not a valid pg state"; + *ss << "'" << state_str << "' is not a valid pg state," + << " available choices: " << pg_state_string(0xFFFFFFFF); return -EINVAL; } state |= filter;