diff --git a/core/log/formatters/optional.hpp b/core/log/formatters/optional.hpp index 5f92a41395..212f57c95a 100644 --- a/core/log/formatters/optional.hpp +++ b/core/log/formatters/optional.hpp @@ -22,7 +22,7 @@ struct fmt::formatter> { // Check if reached the end of the range: if (it != end && *it != '}') { - throw format_error("invalid format"); + throw fmt::format_error("invalid format"); } // Return an iterator past the end of the parsed range: @@ -51,7 +51,7 @@ struct fmt::formatter> { // Check if reached the end of the range: if (it != end && *it != '}') { - throw format_error("invalid format"); + throw fmt::format_error("invalid format"); } // Return an iterator past the end of the parsed range: