mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 08:28:22 +00:00
feat(infisical-pg): added global error handler, try catch in oauth passport
This commit is contained in:
@@ -54,7 +54,7 @@ export class BadRequestError extends Error {
|
||||
|
||||
constructor({ name, error, message }: { message?: string; name?: string; error?: unknown }) {
|
||||
super(message ?? "The request is invalid");
|
||||
this.name = name || "";
|
||||
this.name = name || "BadRequest";
|
||||
this.error = error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user