mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Merge pull request #57031 from aiven-sal/aiven-sal/fix_namedcoll2
NamedCollections: make exception message more informative.
This commit is contained in:
commit
c25c6ec403
@ -105,7 +105,7 @@ MutableNamedCollectionPtr tryGetNamedCollectionWithOverrides(
|
||||
if (allow_override_by_default)
|
||||
continue;
|
||||
// if allow_override_by_default is false we don't allow extra arguments
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Override not allowed");
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Override not allowed because setting allow_override_by_default is disabled");
|
||||
}
|
||||
else if (!collection_copy->isOverridable(value_override->first, allow_override_by_default))
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Override not allowed for '{}'", value_override->first);
|
||||
|
Loading…
Reference in New Issue
Block a user