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 1724f15 commit e36fabbCopy full SHA for e36fabb
src/interceptors/android/adb-commands.ts
@@ -54,8 +54,15 @@ export const getConnectedDevices = batchCalls(async (adbClient: adb.AdbClient) =
54
if (
55
e.code === 'ENOENT' || // No ADB available
56
e.code === 'EACCES' || // ADB available, but we aren't allowed to run it
57
+ e.code === 'ECONNREFUSED' || // Tried to start ADB, but still couldn't connect
58
(e.cmd && e.code) // ADB available, but "adb start-server" failed
59
) {
60
+ if (e.code !== 'ENOENT') {
61
+ console.log(`ADB unavailable, ${e.cmd
62
+ ? `${e.cmd} exited with ${e.code}`
63
+ : `due to ${e.code}`
64
+ }`);
65
+ }
66
return [];
67
} else {
68
reportError(e);
0 commit comments