improve matching filter error message (#7578)

## Context
This can be thrown when a type is not properly supported by
isRecordMatchingFilter. This should not happen but for some workspaces
with legacy types this should help debugging.
This commit is contained in:
Weiko 2024-10-10 18:58:25 +02:00 committed by GitHub
parent 43a0006947
commit 17463434d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,9 @@ export const isRecordMatchingFilter = ({
); );
} }
default: { default: {
throw new Error('Not implemented yet'); throw new Error(
`Not implemented yet for field type "${objectMetadataField.type}"`,
);
} }
} }
}); });