mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
improvement: add undefined handling
This commit is contained in:
@@ -99,7 +99,7 @@ export const validateAwsConnectionCredentials = async (appConnection: TAwsConnec
|
|||||||
|
|
||||||
if (error instanceof AxiosError) {
|
if (error instanceof AxiosError) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
message = (error.response?.data?.message as string) || error.message;
|
message = (error.response?.data?.message as string) || error.message || "verify credentials";
|
||||||
} else {
|
} else {
|
||||||
message = (error as Error)?.message || "verify credentials";
|
message = (error as Error)?.message || "verify credentials";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user