diff --git a/src/layman/layer/util.py b/src/layman/layer/util.py index 83dbfbbf9..d20bda218 100644 --- a/src/layman/layer/util.py +++ b/src/layman/layer/util.py @@ -418,7 +418,7 @@ def parse_and_validate_external_table_uri_str(external_table_uri_str): if unsafe_column_names: raise LaymanError(2, { 'parameter': 'external_table_uri', - 'message': 'Expected table with all column names mathing regular expression ' + SAFE_PG_IDENTIFIER_PATTERN, + 'message': 'Expected table with all column names matching regular expression ' + SAFE_PG_IDENTIFIER_PATTERN, 'found': { 'external_table_uri': external_table_uri_str, 'schema': schema, diff --git a/src/layman/layer/util_test.py b/src/layman/layer/util_test.py index 81e1f57be..e4faf2066 100644 --- a/src/layman/layer/util_test.py +++ b/src/layman/layer/util_test.py @@ -399,7 +399,7 @@ def test_parse_external_table_uri_str(external_table_uri_str, exp_result): 'code': 2, 'data': { 'parameter': 'external_table_uri', - 'message': 'Expected table with all column names mathing regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$', + 'message': 'Expected table with all column names matching regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$', 'found': { 'external_table_uri': 'postgresql://docker:docker@postgresql:5432/external_test_db?schema=schema_name&table=table_with_unsafe_column_name&geo_column=geo_wkb_column', 'schema': 'schema_name',