ERR_FMT uses fmtlib's specifiers rather than the POSIX ones.
Change-Id: Iadd914fe2f5556b4d2463a9a6861bcb4d40d9643
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
try {
return _main(argc, argv);
} catch (const std::exception& e) {
- ERR_FMT("Unhandled exception caught by main thread: %s", e.what());
+ ERR_FMT("Unhandled exception caught by main thread: {}", e.what());
abort();
}
}
try {
return _main(argc, argv);
} catch (const std::exception& e) {
- ERR_FMT("Unhandled exception caught by client: %s", e.what());
+ ERR_FMT("Unhandled exception caught by client: {}", e.what());
abort();
}
}
try {
return _main(argc, argv);
} catch (const std::exception& e) {
- ERR_FMT("Unhandled exception caught by notification client: %s", e.what());
+ ERR_FMT("Unhandled exception caught by notification client: {}", e.what());
abort();
}
}
try {
return _main();
} catch (const std::exception& e) {
- ERR_FMT("Unhandled exception caught by action unit test: %s", e.what());
+ ERR_FMT("Unhandled exception caught by action unit test: {}", e.what());
abort();
}
}