Makes the error more informative when a higher-order function variable is encountered.
Fixes cvc5/cvc5-projects#450.
if (!isHol)
{
std::stringstream ss;
- ss << "Partial function applications are only supported with "
+ if (k == kind::HO_APPLY)
+ {
+ ss << "Partial function applications";
+ }
+ else
+ {
+ ss << "Function variables";
+ }
+ ss << " are only supported with "
"higher-order logic. Try adding the logic prefix HO_.";
throw LogicException(ss.str());
}