Skip to content

Commit b723573

Browse files
Fix: Improve error message for multiple device matches in startSession function
1 parent 9c3ad66 commit b723573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/applive-utils/start-session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ export async function startSession(args: StartSessionArgs): Promise<string> {
6868

6969
if (exactMatch) {
7070
matches.splice(0, matches.length, exactMatch); // Replace matches with the exact match
71-
} else if (matches.length > 1) {
71+
} else if (matches.length >= 1) {
7272
const names = matches.map((d) => d.display_name).join(", ");
7373
throw new Error(
74-
`Multiple devices found: [${names}]. Select one out of them.`,
74+
`Multiple/Alternative devices found: [${names}]. Select one out of them.`,
7575
);
7676
}
7777

0 commit comments

Comments
 (0)