Skip to content

Commit

Permalink
fix: fmt::format_error
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
  • Loading branch information
xDimon committed Sep 24, 2024
1 parent 4542b68 commit 087cb4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/log/formatters/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct fmt::formatter<std::optional<T>> {

// 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:
Expand Down Expand Up @@ -51,7 +51,7 @@ struct fmt::formatter<boost::optional<T>> {

// 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:
Expand Down

0 comments on commit 087cb4c

Please sign in to comment.