Tweak parsed type error warning.

This commit is contained in:
Danila Fedorin 2020-09-10 14:04:06 -07:00
parent 76675fbc9b
commit dbabec0db6
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ type_ptr parsed_type_app::to_type(
std::ostringstream error_stream;
error_stream << "invalid application of type ";
error_stream << name;
error_stream << "(" << base_type->arity << " arguments expected, ";
error_stream << "but " << arguments.size() << " were provided)";
error_stream << " (" << base_type->arity << " argument(s) expected, ";
error_stream << "but " << arguments.size() << " provided)";
throw type_error(error_stream.str());
}