From 4f85635e38cfdebe6c211b1e70a2d1042d8a83f5 Mon Sep 17 00:00:00 2001 From: Xiangdong Mu Date: Wed, 16 Oct 2019 14:27:21 +0800 Subject: [PATCH] rbd:delete redundant words when trash restore failed because of same name Signed-off-by: Xiangdong Mu --- src/tools/rbd/action/Trash.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rbd/action/Trash.cc b/src/tools/rbd/action/Trash.cc index 16b11b9e38d23..1b7721a59bd3d 100644 --- a/src/tools/rbd/action/Trash.cc +++ b/src/tools/rbd/action/Trash.cc @@ -491,7 +491,7 @@ int execute_restore(const po::variables_map &vm, << std::endl; } else if (r == -EEXIST) { std::cerr << "rbd: error: an image with the same name already exists, " - << "try again with with a different name" + << "try again with a different name" << std::endl; } else { std::cerr << "rbd: restore error: " << cpp_strerror(r) << std::endl; -- 2.39.5