From 15f6485327d58063a2362234d9b86f7ce4abe888 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Mon, 18 Nov 2019 16:46:53 +0000 Subject: [PATCH] src: Give a reason why `:rename-buffer` failed --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 27531aec..b63353c3 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -826,7 +826,7 @@ const CommandDesc rename_buffer_cmd = { [](const ParametersParser& parser, Context& context, const ShellContext&) { if (not context.buffer().set_name(parser[0])) - throw runtime_error(format("unable to change buffer name to '{}'", parser[0])); + throw runtime_error(format("unable to change buffer name to '{}': a buffer with this name already exists", parser[0])); } };