Skip to content

Commit 743d621

Browse files
committed
🔊 improve error message in publishing
1 parent 8ea36f9 commit 743d621

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/models/controller.model.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,15 @@ export class Controller {
344344
orderingKey,
345345
);
346346
} catch (error) {
347+
if (error instanceof ServerError) {
348+
errorLogger(
349+
'streamContacts',
350+
`[${orderingKey}] Could not publish contacts`,
351+
providerConfig.apiKey,
352+
{ message: error.message, status: error.status },
353+
);
354+
}
355+
347356
errorLogger(
348357
'streamContacts',
349358
`[${orderingKey}] Could not publish contacts`,

0 commit comments

Comments
 (0)