mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
fix: solve rest stack trace. Thanks Tricked!
This commit is contained in:
@@ -44,6 +44,7 @@ export async function runMethod<T = any>(
|
||||
},
|
||||
method: method.toUpperCase(),
|
||||
}).catch((error) => {
|
||||
errorStack.message = (error as Error)?.message;
|
||||
console.error(error);
|
||||
throw errorStack;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user