Skip to content

Commit

Permalink
fix compiler error after suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ullingerc committed Oct 1, 2024
1 parent 852e8d3 commit b52f0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/RdfParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ TripleComponent TurtleParser<T>::literalAndDatatypeToTripleComponentImpl(
auto makeNormalLiteral = [parser, literal, normalizedLiteralContent,
type](std::optional<std::exception> error =
std::nullopt) {
std::string_view errorMsg = error.value_or("");
std::string_view errorMsg = error.has_value() ? error.value().what() : "";
std::string_view sep = error.has_value() ? ": " : "";
LOG(DEBUG) << normalizedLiteralContent
<< " could not be parsed as an object of type " << type << sep
Expand Down

0 comments on commit b52f0fa

Please sign in to comment.