Update src/Storages/NamedCollectionsHelpers.cpp

Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
This commit is contained in:
Salvatore Mesoraca 2023-11-21 11:14:48 +01:00 committed by GitHub
parent 970e34f32e
commit f96cd4cfb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 because allow_override_by_default is false");
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);