Skip to content

Improve error report if table query refers non-existing column

File config.yaml:

- Param: foo
  Desc: bar

ID column settings:

constdata_files = {
    "config.yaml": {
        "id": "Param",
    },

Then, if a query refer a non-existing column:

.. constdata:table:: config.yaml
   :query: select "non-existing" from "config.yaml"

the error message is

index.rst:57: WARNING: Can't list a table because 'config.yaml' has no ID column with name 'Param'.