Skip to content

Commit

Permalink
🔊 improve error message in publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonaOna committed Sep 19, 2024
1 parent 8ea36f9 commit 743d621
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/models/controller.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@ export class Controller {
orderingKey,
);
} catch (error) {
if (error instanceof ServerError) {
errorLogger(
'streamContacts',
`[${orderingKey}] Could not publish contacts`,
providerConfig.apiKey,
{ message: error.message, status: error.status },
);
}

errorLogger(
'streamContacts',
`[${orderingKey}] Could not publish contacts`,
Expand Down

0 comments on commit 743d621

Please sign in to comment.