feat(infisical-pg): added global error handler, try catch in oauth passport

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:23 +05:30
parent 4f619d7e48
commit bb6d482ff9
6 changed files with 76 additions and 27 deletions
+1 -1
View File
@@ -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;
}
}