aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/main.cpp b/client/main.cpp
index 7e9b4b1..2b47f7e 100644
--- a/client/main.cpp
+++ b/client/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";