summaryrefslogtreecommitdiffstatshomepage
path: root/server/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/main/main.cpp')
-rw-r--r--server/main/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/main/main.cpp b/server/main/main.cpp
index b44f131..f9b803d 100644
--- a/server/main/main.cpp
+++ b/server/main/main.cpp
@@ -9,6 +9,7 @@
#include <boost/program_options.hpp>
#include <exception>
+#include <format>
#include <iostream>
int main(int argc, char* argv[]) {
@@ -29,7 +30,7 @@ int main(int argc, char* argv[]) {
return 1;
}
} catch (const std::exception& e) {
- std::cerr << "An error occured: " << e.what() << "\n";
+ std::cerr << std::format("An error occured: {}\n", e.what());
return 1;
} catch (...) {
std::cerr << "An unknown error occured\n";