Skip to content

Commit a149202

Browse files
committed
Ignore ENOTDIR ADB startup errors
1 parent 5ad2c60 commit a149202

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const getConnectedDevices = batchCalls(async (adbClient: adb.AdbClient) =
6464
e.code === 'ENOENT' || // No ADB available
6565
e.code === 'EACCES' || // ADB available, but we aren't allowed to run it
6666
e.code === 'ECONNREFUSED' || // Tried to start ADB, but still couldn't connect
67+
e.code === 'ENOTDIR' || // ADB path contains something that's not a directory
6768
e.signal === 'SIGKILL' || // In some envs 'adb start-server' is always killed (why?)
6869
(e.cmd && e.code) // ADB available, but "adb start-server" failed
6970
) {

0 commit comments

Comments
 (0)