Skip to content

Commit

Permalink
Minor changes in error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Aug 15, 2024
1 parent 9d7b4f5 commit dbb7c05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/android/subcommands/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function getInstalledSystemImages(sdkmanagerLocation: string, platf
}> {
const stdout = execBinarySync(sdkmanagerLocation, 'sdkmanager', platform, '--list');
if (!stdout) {
Logger.log(`${colors.red('Failed to fetch system images!')} Please try again.`);
Logger.log(`\n${colors.red('Failed to fetch system images!')} Please try again.`);

return {
result: false,
Expand Down
7 changes: 4 additions & 3 deletions src/commands/android/subcommands/install/avd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ export async function createAvd(sdkRoot: string, platform: Platform): Promise<bo
const installedSystemImages = await getInstalledSystemImages(sdkmanagerLocation, platform);
if (!installedSystemImages.result) {
return false;
} else if (!installedSystemImages.systemImages.length) {
Logger.log(colors.red('No system image is installed!'));
Logger.log(`Run ${colors.cyan('npx @nightwatch/mobile-helper android install --system-image')} to install system images.`);
}
if (!installedSystemImages.systemImages.length) {
Logger.log(colors.red('\nNo installed system images were found!'));
Logger.log(`Run: ${colors.cyan('npx @nightwatch/mobile-helper android install --system-image')} to install a new system image.`);

return false;
}
Expand Down

0 comments on commit dbb7c05

Please sign in to comment.