lib/fmt/RuntimeError: new library

Replacing FormatRuntimeError().
This commit is contained in:
Max Kellermann
2022-11-28 21:58:21 +01:00
parent 45b13fc2a6
commit fa58db798b
105 changed files with 551 additions and 502 deletions

View File

@@ -18,7 +18,7 @@
*/
#include "Parser.hxx"
#include "util/RuntimeError.hxx"
#include "lib/fmt/RuntimeError.hxx"
#include "util/StringStrip.hxx"
#include "util/StringUtil.hxx"
@@ -36,7 +36,7 @@ ParseBool(const char *value)
if (StringArrayContainsCase(f, value))
return false;
throw FormatRuntimeError(R"(Not a valid boolean ("yes" or "no"): "%s")", value);
throw FmtRuntimeError(R"(Not a valid boolean ("yes" or "no"): "{}")", value);
}
long