mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-22 15:59:56 -05:00
chore(core): fix error.cause in BetterAuthError (#7347)
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user