Skip to content

Commit

Permalink
improve filter lang error, inproves #955 (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Feb 14, 2024
1 parent 5d0d6f4 commit 36a190c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycsw/ogc/api/records.py
Expand Up @@ -567,8 +567,8 @@ def items(self, headers_, json_post_data, args, collection='metadata:main'):
cql_query = args['filter']
filter_lang = args.get('filter-lang')
if filter_lang is not None and filter_lang not in filter_langs:
msg = f'Invalid filter-lang'
LOGGER.exception(msg)
msg = f'Invalid filter-lang, available: {", ".join(filter_langs)}'
LOGGER.exception(f'{msg} Used: {filter_lang}')
return self.get_exception(400, headers_, 'InvalidParameterValue', msg)

LOGGER.debug('Transforming property filters into CQL')
Expand Down

0 comments on commit 36a190c

Please sign in to comment.