Skip to content

Commit

Permalink
Update ContainerAppItem provisioning error conditions (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Oct 24, 2024
1 parent fc7d678 commit 47fd085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree/ContainerAppItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class ContainerAppItem implements ContainerAppsItem, RevisionsDraftModel
this.containerApp.id,
this.containerApp.name);

if (this.containerApp.provisioningState && this.containerApp.provisioningState !== 'Succeeded') {
throw new Error(localize('provisioningError', 'The container app "{0}" cannot be expanded due to its provisioning state of "{1}". Its children cannot be accessed until the app is successfully provisioned.', this.containerApp.name, this.containerApp.provisioningState));
if (this.containerApp.provisioningState === 'Deleting' || this.containerApp.provisioningState === 'InProgress') {
throw new Error(localize('provisioningError', 'The container app "{0}" cannot be expanded due to its provisioning state of "{1}". Its children cannot be accessed until the app has finished provisioning.', this.containerApp.name, this.containerApp.provisioningState));
}

const children: TreeElementBase[] = [];
Expand Down

0 comments on commit 47fd085

Please sign in to comment.