Skip to content

Commit

Permalink
fix error handling in cocm adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Jan 22, 2025
1 parent 5822180 commit 9bcaded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/cocmAdapter/cocmAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class CocmAdapter implements CocmAdapterInterface {
},
},
);
if (result?.data?.error !== null) {
if (result?.data?.error) {
logger.error('clusterMatchingApi error', result.data.error);
throw new Error(
i18n.__(translationErrorMessagesKeys.CLUSTER_MATCHING_API_ERROR),
Expand Down

0 comments on commit 9bcaded

Please sign in to comment.