We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentda80048 commita2f7219Copy full SHA for a2f7219
pkg/board/remote/adb/adb.go
@@ -82,12 +82,13 @@ func (a *ADBConnection) Forward(ctx context.Context, localPort int, remotePort i
82
iferr!=nil {
83
returnerr
84
}
85
-iferr:=cmd.RunWithinContext(ctx);err!=nil {
+ifout,err:=cmd.RunAndCaptureCombinedOutput(ctx);err!=nil {
86
returnfmt.Errorf(
87
-"failed to forward ADB port %s to %s: %w",
+"failed to forward ADB port %s to %s: %w: %s",
88
local,
89
remote,
90
err,
91
+out,
92
)
93
94
@@ -99,8 +100,8 @@ func (a *ADBConnection) ForwardKillAll(ctx context.Context) error {
99
100
101
102
103
-returnfmt.Errorf("failed to kill all ADB forwarded ports: %w",err)
104
+returnfmt.Errorf("failed to kill all ADB forwarded ports: %w: %s",err,out)
105
106
returnnil
107