mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
Use append_formatv in string_error
This commit is contained in:
parent
54e626f665
commit
bfe142fef0
|
@ -40,11 +40,9 @@ static void string_error(const wchar_t *fmt, ...)
|
|||
{
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
wcstring errstr = vformat_string(fmt, va);
|
||||
stderr_buffer.append(L"string ");
|
||||
append_formatv(stderr_buffer, fmt, va);
|
||||
va_end(va);
|
||||
|
||||
stderr_buffer += L"string ";
|
||||
stderr_buffer += errstr;
|
||||
}
|
||||
|
||||
static void string_unknown_option(parser_t &parser, const wchar_t *subcmd, const wchar_t *opt)
|
||||
|
|
Loading…
Reference in New Issue
Block a user