mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Improve exception message text
This commit is contained in:
parent
0aed62ec73
commit
10ec069175
@ -232,7 +232,7 @@ void ConfigProcessor::decryptRecursive(Poco::XML::Node * config_root)
|
||||
{
|
||||
const NodeListPtr children = element.childNodes();
|
||||
if (children->length() != 1)
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Encrypted node {} should have only one text node", node->nodeName());
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Encrypted node {} cannot contain nested elements", node->nodeName());
|
||||
|
||||
Node * text_node = node->firstChild();
|
||||
if (text_node->nodeType() != Node::TEXT_NODE)
|
||||
|
@ -33,4 +33,4 @@ def test_no_encryption_key():
|
||||
|
||||
|
||||
def test_subnodes():
|
||||
start_clickhouse("configs/config_subnodes.xml", "should have only one text node")
|
||||
start_clickhouse("configs/config_subnodes.xml", "cannot contain nested elements")
|
||||
|
Loading…
Reference in New Issue
Block a user