We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d288518 commit f585178Copy full SHA for f585178
packages/core/src/codewhisperer/region/regionProfileManager.ts
@@ -172,8 +172,8 @@ export class RegionProfileManager {
172
}
173
174
175
- if (availableProfiles.length === 0 && failedRegions.length > 0) {
176
- // Only throw error if all regions fail
+ // Only throw error if all regions fail
+ if (failedRegions.length === endpoints.size) {
177
throw new Error(`Failed to list profiles for all regions: ${failedRegions.join(', ')}`)
178
179
0 commit comments