mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Add client shard eval/client property fetching, and improve existing shard stuff
This commit is contained in:
7
src/util/MakeError.js
Normal file
7
src/util/MakeError.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = function makeError(obj) {
|
||||
const err = new Error(obj.message, obj.fileName, obj.lineNumber);
|
||||
err.name = obj.name;
|
||||
err.columnNumber = obj.columnNumber;
|
||||
err.stack = obj.stack;
|
||||
return err;
|
||||
};
|
||||
Reference in New Issue
Block a user