Change Method into method in exceptions

This commit is contained in:
Roman Vasin 2023-07-18 15:33:50 +00:00
parent 59570b7e20
commit c8c6c31384
2 changed files with 6 additions and 6 deletions

View File

@ -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));
}
}

View File

@ -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():