src: Give a reason why :rename-buffer failed

This commit is contained in:
Frank LENORMAND 2019-11-18 16:46:53 +00:00 committed by GitHub
parent 4d7ea276c4
commit 15f6485327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]));
}
};