mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 16:36:34 -05:00
chore: add stack-traces to node:async_hooks error
This commit is contained in:
@@ -16,6 +16,8 @@ const AsyncLocalStoragePromise: Promise<typeof AsyncLocalStorage> = import(
|
||||
if ("AsyncLocalStorage" in globalThis) {
|
||||
return (globalThis as any).AsyncLocalStorage;
|
||||
}
|
||||
const errorStack = err.stack;
|
||||
console.warn(errorStack);
|
||||
console.warn(
|
||||
"[better-auth] Warning: AsyncLocalStorage is not available in this environment. Some features may not work as expected.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user