diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3269dd5..ba56e65ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ You can also check the [release page](https://github.com/visualize-admin/visuali ## Unreleased -Nothing yet. +- Misc + - Improved `langString` error message # [3.22.4] - 2023-09-06 diff --git a/app/rdf/queries.ts b/app/rdf/queries.ts index e2ac3670a..eeafe9469 100644 --- a/app/rdf/queries.ts +++ b/app/rdf/queries.ts @@ -780,8 +780,8 @@ const buildFilters = ({ const { dataType } = parsedCubeDimension.data; if (ns.rdf.langString.value === dataType) { - console.warn( - `WARNING: Dimension <${iri}> has dataType 'langString'. Filtering won't work.` + throw new Error( + `Dimension <${iri}> has dataType 'langString', which is not supported by Visualize. In order to fix it, change the dataType to 'string' in the cube definition.` ); }