mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix(ShardClientUtil#_respond): construct global error (#8348)
This commit is contained in:
@@ -206,7 +206,7 @@ class ShardClientUtil {
|
|||||||
*/
|
*/
|
||||||
_respond(type, message) {
|
_respond(type, message) {
|
||||||
this.send(message).catch(err => {
|
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;
|
error.stack = err.stack;
|
||||||
/**
|
/**
|
||||||
* Emitted when the client encounters an error.
|
* Emitted when the client encounters an error.
|
||||||
|
|||||||
Reference in New Issue
Block a user