add error handler for validateIR gateway timeout (#22091)

* add error handler for validateIR gateway timeout

* log api errors
This commit is contained in:
brian-harris
2023-03-02 11:01:28 -08:00
committed by GitHub
parent 711923cd46
commit 345c6b16e3
3 changed files with 29 additions and 3 deletions

View File

@@ -796,6 +796,8 @@ export function VALIDATE_IR_VALIDATION_STATUS(state: string | undefined, errors?
}
}
export const VALIDATE_IR_ERROR_GATEWAY_TIMEOUT = localize('sql.migration.validate.error.gatewaytimeout', "A time-out was encountered while validating a resource connection. Learn more: https://aka.ms/dms-migrations-troubleshooting.");
export function VALIDATE_IR_VALIDATION_STATUS_ERROR_COUNT(state: string | undefined, errorCount: number): string {
const status = state ?? '';
return errorCount > 1