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

@@ -22,8 +22,8 @@
#include "ParseName.hxx"
#include "config/Data.hxx"
#include "config/Option.hxx"
#include "lib/fmt/RuntimeError.hxx"
#include "util/ASCII.hxx"
#include "util/RuntimeError.hxx"
#include "util/IterableSplitString.hxx"
#include "util/StringCompare.hxx"
#include "util/StringStrip.hxx"
@@ -59,8 +59,8 @@ TagLoadConfig(const ConfigData &config)
const auto type = tag_name_parse_i(name);
if (type == TAG_NUM_OF_ITEM_TYPES)
throw FormatRuntimeError("error parsing metadata item \"%s\"",
name);
throw FmtRuntimeError("error parsing metadata item \"{}\"",
name);
if (plus)
global_tag_mask.Set(type);

View File

@@ -58,6 +58,7 @@ tag = static_library(
tag_sources,
include_directories: inc,
dependencies: [
fmt_dep,
libid3tag_dep,
],
)