mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Make exception message more descriptive
This commit is contained in:
parent
118a068a4d
commit
b11aaecf29
@ -340,7 +340,12 @@ bool SettingsConstraints::Checker::check(SettingChange & change,
|
|||||||
if (!min_value.isNull() && !max_value.isNull() && less_or_cannot_compare(max_value, min_value))
|
if (!min_value.isNull() && !max_value.isNull() && less_or_cannot_compare(max_value, min_value))
|
||||||
{
|
{
|
||||||
if (reaction == THROW_ON_VIOLATION)
|
if (reaction == THROW_ON_VIOLATION)
|
||||||
throw Exception(ErrorCodes::SETTING_CONSTRAINT_VIOLATION, "Setting {} should not be changed", setting_name);
|
throw Exception(
|
||||||
|
ErrorCodes::SETTING_CONSTRAINT_VIOLATION,
|
||||||
|
"The maximum ({}) value is less than the maximum ({}) value for setting {}",
|
||||||
|
max_value,
|
||||||
|
min_value,
|
||||||
|
setting_name);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user