Skip to content

Commit

Permalink
[GRM] Include the invalid kind in a thrown exception
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoMeyer441 committed Jul 21, 2024
1 parent 5b84a1e commit aa50361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/grm/src/grm/dom_render/render.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13253,7 +13253,11 @@ static void plotCoordinateRanges(const std::shared_ptr<GRM::Element> &element,
element->setAttribute("_c_lim_max", NAN);
kind = static_cast<std::string>(element->getAttribute("kind"));
if (!string_map_at(fmt_map, static_cast<const char *>(kind.c_str()), static_cast<const char **>(&fmt)))
throw NotFoundError("Invalid kind was given.\n");
{
std::stringstream ss;
ss << "Invalid kind \"" << kind << "\" was given.";
throw NotFoundError(ss.str());
}
if (!str_equals_any(kind, "pie", "polar_histogram"))
{
current_component_name = data_component_names.begin();
Expand Down

0 comments on commit aa50361

Please sign in to comment.