Skip to content

Commit

Permalink
fix(ShardClientUtil#_respond): construct global error (#8348)
Browse files Browse the repository at this point in the history
  • Loading branch information
didinele committed Jul 24, 2022
1 parent 59a7e52 commit 8e520f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/sharding/ShardClientUtil.js
Expand Up @@ -206,7 +206,7 @@ class ShardClientUtil {
*/
_respond(type, message) {
this.send(message).catch(err => {
const error = new Error(`Error when sending ${type} response to master process: ${err.message}`);
const error = new globalThis.Error(`Error when sending ${type} response to master process: ${err.message}`);
error.stack = err.stack;
/**
* Emitted when the client encounters an error.
Expand Down

1 comment on commit 8e520f9

@vercel
Copy link

@vercel vercel bot commented on 8e520f9 Jul 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.