mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Change Method into method in exceptions
This commit is contained in:
parent
59570b7e20
commit
c8c6c31384
@ -38,7 +38,7 @@ EncryptionMethod getEncryptionMethod(const std::string & name)
|
||||
else if (name == "AES_256_GCM_SIV")
|
||||
return AES_256_GCM_SIV;
|
||||
else
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption Method. Got {}", name);
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption method. Got {}", name);
|
||||
}
|
||||
|
||||
namespace
|
||||
@ -74,7 +74,7 @@ uint8_t getMethodCode(EncryptionMethod Method)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption Method. Got {}", getMethodName(Method));
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption method. Got {}", getMethodName(Method));
|
||||
}
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ UInt64 methodKeySize(EncryptionMethod Method)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption Method. Got {}", getMethodName(Method));
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption method. Got {}", getMethodName(Method));
|
||||
}
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ auto getMethod(EncryptionMethod Method)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption Method. Got {}", getMethodName(Method));
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption method. Got {}", getMethodName(Method));
|
||||
}
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@ auto getMethod(EncryptionMethod Method)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption Method. Got {}", getMethodName(Method));
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Wrong encryption method. Got {}", getMethodName(Method));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ def start_clickhouse(config, err_msg):
|
||||
|
||||
|
||||
def test_wrong_method():
|
||||
start_clickhouse("configs/config_wrong_method.xml", "Wrong encryption Method")
|
||||
start_clickhouse("configs/config_wrong_method.xml", "Wrong encryption method. Got WRONG")
|
||||
|
||||
|
||||
def test_invalid_chars():
|
||||
|
Loading…
Reference in New Issue
Block a user