mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(ShardClientUtil#_respond): construct global error (#8348)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user