Skip to content

Commit

Permalink
Fix socket-mode package
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Aug 26, 2021
1 parent 907cb0f commit a6d62e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/socket-mode/src/SocketModeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class SocketModeClient extends EventEmitter {

try {
event = JSON.parse(data);
} catch (parseError) {
} catch (parseError: any) {
// prevent application from crashing on a bad message, but log an error to bring attention
this.logger.error(
`unable to parse incoming websocket message: ${parseError.message}`,
Expand Down

0 comments on commit a6d62e9

Please sign in to comment.