Skip to content
Snippets Groups Projects
Commit 1ab183fa authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.configuration] added meaningful error message

parent cbcde18f
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,9 @@ public:
{
if (!has_key(key))
DUNE_THROW(Exceptions::configuration_error,
"Configuration does not have this key and there was no default value provided");
"This configuration (see below) does not contain the key '" << key << "' and there was no default "
<< "value provided!\n\n"
<< report_string());
return get_valid_value<T, ValidateAny<T>>(key, T(), ValidateAny<T>(), size, cols);
} // ... get(...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment