fix: solve rest stack trace. Thanks Tricked!

This commit is contained in:
Skillz4Killz
2021-09-12 20:15:42 +00:00
committed by GitHub
parent 8ea7ab70df
commit 3e21759e81

View File

@@ -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;
});