chore(core): fix error.cause in BetterAuthError (#7347)

This commit is contained in:
Alex Yang
2026-01-13 17:24:10 -08:00
committed by GitHub
parent cf219a50e0
commit f8b052d2e1
4 changed files with 14 additions and 12 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
import { APIError as BaseAPIError } from "better-call/error";
export class BetterAuthError extends Error {
constructor(message: string, cause?: string | undefined) {
super(message);
constructor(message: string, options?: { cause?: unknown | undefined }) {
super(message, options);
this.name = "BetterAuthError";
this.message = message;
this.cause = cause;
this.stack = "";
}
}