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 ab6e41d commit 3de7801Copy full SHA for 3de7801
src/interceptors/android/android-adb-interceptor.ts
@@ -8,6 +8,7 @@ import { generateSPKIFingerprint } from 'mockttp';
8
9
import { reportError } from '../../error-tracking';
10
import { delay } from '../../util/promise';
11
+import { isErrorLike } from '../../util/error';
12
import {
13
ANDROID_TEMP,
14
createAdbClient,
@@ -147,7 +148,9 @@ export class AndroidAdbInterceptor implements Interceptor {
147
148
tunnelConnectFailures = 0;
149
} catch (e) {
150
tunnelConnectFailures += 1;
- console.log(`${options.deviceId} ADB tunnel failed`, e);
151
+ console.log(`${options.deviceId} ADB tunnel failed`,
152
+ isErrorLike(e) ? e.message : e
153
+ );
154
155
if (tunnelConnectFailures >= 5) {
156
// After 10 seconds disconnected, give up
0 commit comments