src: Give a reason why :rename-buffer
failed
This commit is contained in:
parent
4d7ea276c4
commit
15f6485327
|
@ -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]));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user