mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
improve rotation account error response
This commit is contained in:
@@ -213,12 +213,9 @@ export const pamResourceServiceFactory = ({
|
|||||||
kmsService
|
kmsService
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (
|
if (err instanceof BadRequestError) {
|
||||||
err instanceof BadRequestError &&
|
|
||||||
err.message === "Account credentials invalid: Username or password incorrect"
|
|
||||||
) {
|
|
||||||
throw new 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