@teamvibe/poller 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/poller.js +9 -2
- package/package.json +1 -1
package/dist/poller.js
CHANGED
|
@@ -176,8 +176,15 @@ async function processMessage(received) {
|
|
|
176
176
|
}
|
|
177
177
|
if (hasSlackContext) {
|
|
178
178
|
try {
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
const errMsg = error instanceof Error ? error.message : 'Unknown error';
|
|
180
|
+
// Don't leak internal infra errors to Slack users
|
|
181
|
+
const isInternalError = errMsg.includes('ReceiptHandle') ||
|
|
182
|
+
errMsg.includes('ConditionalCheckFailedException') ||
|
|
183
|
+
errMsg.includes('visibility timeout');
|
|
184
|
+
if (!isInternalError) {
|
|
185
|
+
await sendSlackError(queueMessage, errMsg);
|
|
186
|
+
await addReaction(queueMessage, 'x');
|
|
187
|
+
}
|
|
181
188
|
}
|
|
182
189
|
catch (slackError) {
|
|
183
190
|
sessionLog.error(`Failed to send Slack error: ${slackError}`);
|