Improve warning for UDQ missing unit
This commit is contained in:
@@ -922,7 +922,7 @@ inline void keywordMISC( SummaryConfig::keyword_list& list,
|
||||
if (!udq.has_unit(location.keyword)) {
|
||||
std::string msg = "Summary output requested for UDQ {keyword}\n"
|
||||
"In {file} line {line}\n"
|
||||
"No unit define in the SCHEDULE section";
|
||||
"No unit defined in the SCHEDULE section for {keyword}";
|
||||
parseContext.handleError(ParseContext::SUMMARY_UDQ_MISSING_UNIT, msg, location, errors);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2189,7 +2189,7 @@ UDQ
|
||||
UDQState udq_state(undefined_value);
|
||||
SummaryState st(std::chrono::system_clock::now());
|
||||
|
||||
BOOST_CHECK_THROW(udq.eval(0, st, udq_state), std::out_of_range);
|
||||
BOOST_CHECK_THROW(udq.eval(0, st, udq_state), std::exception);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user