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 c030354 commit f827c48Copy full SHA for f827c48
cli/src/util/native-run.ts
@@ -3,6 +3,7 @@ import { dirname } from 'path';
3
import c from '../colors';
4
import type { PlatformTarget } from '../common';
5
import { fatal } from '../errors';
6
+import { logger } from '../log';
7
8
import { resolveNode } from './node';
9
import { runCommand } from './subprocess';
@@ -40,6 +41,12 @@ export async function getPlatformTargets(platformName: string): Promise<Platform
40
41
const err = JSON.parse(e);
42
errors.push(err);
43
}
44
+
45
+ if (errors.length === 0) {
46
+ logger.info('No devices found.');
47
+ return [];
48
+ }
49
50
const plural = errors.length > 1 ? 's' : '';
51
const errMsg = `${c.strong('native-run')} failed with error${plural}\n
52
${errors
0 commit comments