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 03a1141 commit 267db19Copy full SHA for 267db19
src/interceptors/android/adb-commands.ts
@@ -42,7 +42,15 @@ export function createAdbClient() {
42
43
// We listen for errors and report them. This only happens if adbkit completely
44
// fails to handle or listen to a connection error. We'd rather report that than crash.
45
- client.on('error', logError);
+ client.on('error', (e) => {
46
+ if (isErrorLike(e) && e.code === 'ENOENT') {
47
+ // No ADB available - that's fine, not notable at all
48
+ return;
49
+ }
50
+
51
+ console.log('ADB client error:', e.message ?? e);
52
+ logError(e);
53
+ });
54
55
return client;
56
}
0 commit comments