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

@@ -31,12 +31,12 @@
*/
#include "Error.hxx"
#include "util/RuntimeError.hxx"
#include "lib/fmt/RuntimeError.hxx"
void
ODBus::Error::Throw(const char *prefix) const
{
throw FormatRuntimeError("%s: %s", prefix, GetMessage());
throw FmtRuntimeError("{}: {}", prefix, GetMessage());
}
void