seperate Mu::format and Mu::vformat

This commit is contained in:
Derek Zhou
2021-04-22 18:32:38 +00:00
parent 5edc5a886a
commit dc6f76d74d
6 changed files with 9 additions and 7 deletions

View File

@ -67,7 +67,7 @@ struct Error final: public std::exception {
Error(Code codearg, const char *frm, ...): code_{codearg} {
va_list args;
va_start(args, frm);
what_ = format(frm, args);
what_ = vformat(frm, args);
va_end(args);
}
@ -89,7 +89,7 @@ struct Error final: public std::exception {
va_list args;
va_start(args, frm);
what_ = format(frm, args);
what_ = vformat(frm, args);
va_end(args);
if (err && *err)