aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-10 12:07:03 +0100
committerMartin Ridgers <[email protected]>2022-01-10 13:22:28 +0100
commit9086231f3923c0df6d9ef817441bfae5e134e8ff (patch)
tree739a41ca51910d9319cb6c04af435bf9b4c6d5cd /zenserver/config.cpp
parentVcpkg's manifest mode is no longer in use (diff)
downloadzen-9086231f3923c0df6d9ef817441bfae5e134e8ff.tar.xz
zen-9086231f3923c0df6d9ef817441bfae5e134e8ff.zip
Converted use of _format UDL to fmt::format
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index 722bc3b97..9fd4bfa69 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -394,8 +394,6 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
void
ParseConfigFile(const std::filesystem::path& Path, ZenServerOptions& ServerOptions)
{
- using namespace fmt::literals;
-
zen::IoBuffer LuaScript = zen::IoBufferBuilder::MakeFromFile(Path);
if (LuaScript)
@@ -433,14 +431,14 @@ ParseConfigFile(const std::filesystem::path& Path, ZenServerOptions& ServerOptio
std::string ErrorString = sol::to_string(config.status());
- throw std::runtime_error("{} error: {}"_format(ErrorString, err.what()));
+ throw std::runtime_error(fmt::format("{} error: {}", ErrorString, err.what()));
}
config();
}
catch (std::exception& e)
{
- throw std::runtime_error("failed to load config script ('{}'): {}"_format(Path, e.what()).c_str());
+ throw std::runtime_error(fmt::format("failed to load config script ('{}'): {}", Path, e.what()).c_str());
}
if (sol::optional<sol::table> ServerConfig = lua["server"])