Skip to content

Commit 6900b8c

Browse files
committed
improve error message
1 parent daa620b commit 6900b8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/hubspot/actions/search-crm/search-crm.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ export default {
209209
});
210210

211211
if (!schema.searchableProperties.includes(searchProperty)) {
212-
throw new ConfigurationError(`\`${searchProperty}\` is not a searchable property of object type \`${objectType}\``);
212+
throw new ConfigurationError(
213+
`Property \`${searchProperty}\` is not a searchable property of object type \`${objectType}\`. ` +
214+
`\n\nAvailable searchable properties are: \`${schema.searchableProperties.join("`, `")}\``,
215+
);
213216
}
214217

215218
const properties = creationProps

0 commit comments

Comments
 (0)