Skip to content

Commit e5ec5a1

Browse files
authored
More precise exception
1 parent 1769393 commit e5ec5a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ckanext/datastore/backend/postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ def search(context: Context, data_dict: dict[str, Any]):
17941794
if _get_pgcode(e) == _PG_ERR_CODE['undefined_table']:
17951795
resource_id = data_dict.get('resource_id', '')
17961796
raise toolkit.ObjectNotFound(
1797-
f'Resource "{resource_id}" was not found.'
1797+
f'DataStore table "{resource_id}" was not found.'
17981798
)
17991799
raise ValidationError(cast(ErrorDict, {
18001800
'query': ['Invalid query'],

0 commit comments

Comments
 (0)