fix error message

This commit is contained in:
liuneng 2024-08-30 13:55:37 +08:00 committed by liuneng1994
parent 5e0000c4ca
commit cd1685d409

View File

@ -85,7 +85,7 @@ public:
if (second_argument_is_date && ((datepart_kind == IntervalKind::Kind::Hour)
|| (datepart_kind == IntervalKind::Kind::Minute) || (datepart_kind == IntervalKind::Kind::Second)))
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type Date of argument for function {}", getName());
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type {} of argument for function {}", arguments[1].type->getName(), getName());
};
auto check_timezone_argument = [&] {