Skip to content

Commit

Permalink
Repo Gardening: fix Slack error check logic (#40414)
Browse files Browse the repository at this point in the history
See #40369 (comment)

Co-authored-by: anomiex <anomiex@users.noreply.github.com>
  • Loading branch information
jeherve and anomiex authored Dec 2, 2024
1 parent 88e5dec commit 30b1275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Slack reporting: update logic.


Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function sendSlackMessage( message, channel, payload, customMessageFormat
} catch ( error ) {
// The request failed.
// At this point, we want to log specific types of errors (let's avoid noise by logging temporary errors for example).
if ( ! error.code === ErrorCode.PlatformError ) {
if ( error.code !== ErrorCode.PlatformError ) {
return false;
}

Expand Down

0 comments on commit 30b1275

Please sign in to comment.