Skip to content

Commit

Permalink
Updated syntax to avoid later change in signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jul 8, 2023
1 parent 339237e commit e750098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/substrait/textplan/converter/LoadBinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ PlanOrErrors loadFromJson(std::string_view json) {
auto status = google::protobuf::util::JsonStringToMessage(
std::string{usableJson}, &plan);
if (!status.ok()) {
std::string msg{status.message()};
return PlanOrErrors(
{fmt::format("Failed to parse Substrait JSON: {}", status.message())});
{fmt::format("Failed to parse Substrait JSON: {}", msg)});
}
return PlanOrErrors(plan);
}
Expand Down

0 comments on commit e750098

Please sign in to comment.