mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improve rotation account error response
This commit is contained in:
@@ -213,12 +213,9 @@ export const pamResourceServiceFactory = ({
|
||||
kmsService
|
||||
});
|
||||
} catch (err) {
|
||||
if (
|
||||
err instanceof BadRequestError &&
|
||||
err.message === "Account credentials invalid: Username or password incorrect"
|
||||
) {
|
||||
if (err instanceof BadRequestError) {
|
||||
throw new BadRequestError({
|
||||
message: "Rotation Account credentials invalid: Username or password incorrect"
|
||||
message: `Rotation Account Error: ${err.message}`
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user