fix: Remove duplicate error reporting for endpoints (no-changelog) (#11959)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Mutasem Aldmour
2024-12-02 19:34:42 +01:00
committed by GitHub
parent f258cebe53
commit fb5cf4beea
14 changed files with 95 additions and 27 deletions

View File

@@ -120,7 +120,7 @@ export class PasswordResetController {
publicApi: false,
});
if (error instanceof Error) {
throw new InternalServerError(`Please contact your administrator: ${error.message}`);
throw new InternalServerError(`Please contact your administrator: ${error.message}`, error);
}
}