Skip to content

Commit

Permalink
Better error message for unsupported JSON value (#12452)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed May 22, 2024
1 parent 5c3bc79 commit 7d5151b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditLIB/FlatModelica/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ namespace FlatModelica
}
}

throw json_error("Expression: invalid JSON object ", value);
throw json_error("Expression: unsupported JSON object ", value);
return nullptr;
}

Expand All @@ -1254,7 +1254,7 @@ namespace FlatModelica
default: break;
}

throw json_error("Expression: invalid JSON value ", value);
throw json_error("Expression: unsupported JSON value ", value);
}

void Integer::print(std::ostream &os) const
Expand Down

0 comments on commit 7d5151b

Please sign in to comment.