From 5c4badf8ea3ba775854f0d26d3f2e0e119584faa Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 07:42:07 +0000 Subject: Replace InspIRCd::Format with fmt::format. --- src/configparser.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index fb70a2513..6dff45588 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -457,10 +457,7 @@ void ParseStack::DoReadFile(const std::string& key, const std::string& name, int auto file = DoOpenFile(path, exec); if (!file) - { - throw CoreException(InspIRCd::Format("Could not read \"%s\" for %s: %s", - path.c_str(), key.c_str(), strerror(errno))); - } + throw CoreException(INSP_FORMAT("Could not read \"{}\" for {}: {}", path, key, strerror(errno))); file_cache& cache = FilesOutput[key]; cache.clear(); @@ -530,8 +527,7 @@ bool ParseStack::ParseFile(const std::string& path, int flags, const std::string if (flags & FLAG_MISSING_OKAY) return true; - throw CoreException(InspIRCd::Format("Could not read \"%s\" for include: %s", - path.c_str(), strerror(errno))); + throw CoreException(INSP_FORMAT("Could not read \"{}\" for include: {}", path, strerror(errno))); } reading.push_back(path); -- cgit v1.3.1-10-gc9f91