Skip to content

Commit

Permalink
improve matching filter error message (#7578)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
Weiko authored Oct 10, 2024
1 parent 43a0006 commit 1746343
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ export const isRecordMatchingFilter = ({
);
}
default: {
throw new Error('Not implemented yet');
throw new Error(
`Not implemented yet for field type "${objectMetadataField.type}"`,
);
}
}
});
Expand Down

0 comments on commit 1746343

Please sign in to comment.