Skip to content

Commit 013c5fa

Browse files
author
Dimitar Kerezov
committed
Fix run
1 parent 82ba18f commit 013c5fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/commands/run.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class RunIosCommand extends RunCommandBase implements ICommand {
126126
}
127127

128128
public async canExecute(args: string[]): Promise<boolean> {
129-
return super.canExecute(args) && await this.$platformService.validateOptions(this.$options.provision, this.$projectData, this.$platformsData.availablePlatforms.iOS);
129+
return await super.canExecute(args) && await this.$platformService.validateOptions(this.$options.provision, this.$projectData, this.$platformsData.availablePlatforms.iOS);
130130
}
131131
}
132132

@@ -158,7 +158,7 @@ export class RunAndroidCommand extends RunCommandBase implements ICommand {
158158
}
159159

160160
public async canExecute(args: string[]): Promise<boolean> {
161-
super.canExecute(args);
161+
await super.canExecute(args);
162162
if (!this.$platformService.isPlatformSupportedForOS(this.$devicePlatformsConstants.Android, this.$projectData)) {
163163
this.$errors.fail("Applications for platform %s can not be built on this OS - %s", this.$devicePlatformsConstants.Android, process.platform);
164164
}

lib/common

0 commit comments

Comments
 (0)