Skip to content

Commit

Permalink
Merge pull request #6233 from jdannberg/add_more_info
Browse files Browse the repository at this point in the history
provide more information about what went wrong when parsing a map
  • Loading branch information
bangerth authored Feb 20, 2025
2 parents 620c9ea + b5a4bf0 commit e7fa91d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,12 @@ namespace aspect
ExcMessage("parse_map_to_double_array can only check the structure "
"of the parsed map for "
+ options.property_name
+ " if an expected number of values for each key is given."));
+ " if an expected number of values for each key is given. "
"The expected number of values is "
+ std::to_string(options.list_of_required_keys.size())
+ ", but instead "
+ std::to_string(options.n_values_per_key.size())
+ " were provided."));

// First: parse the string into a map depending on what Pattern we are dealing with
std::multimap<std::string, double> parsed_map = parse_string_to_map(input_string,
Expand Down

0 comments on commit e7fa91d

Please sign in to comment.