Skip to content

Commit ebc418a

Browse files
authored
surface adb pull errors (#89)
1 parent aec6b32 commit ebc418a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

modules/temp.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"path/filepath"
1111
"strings"
1212

13+
"github.com/botherder/go-savetime/text"
1314
"github.com/mvt-project/androidqf/acquisition"
1415
"github.com/mvt-project/androidqf/adb"
1516
"github.com/mvt-project/androidqf/log"
@@ -81,7 +82,13 @@ func (t *Temp) Run(acq *acquisition.Acquisition, fast bool) error {
8182
dest_path := filepath.Join(t.TempPath,
8283
strings.TrimPrefix(file, acq.TmpDir))
8384

84-
adb.Client.Pull(file, dest_path)
85+
out, err := adb.Client.Pull(file, dest_path)
86+
if err != nil {
87+
if !text.ContainsNoCase(out, "Permission denied") {
88+
log.Errorf("Failed to pull temp file %s: %s\n", file, strings.TrimSpace(out))
89+
}
90+
continue
91+
}
8592
}
8693
}
8794
return nil

0 commit comments

Comments
 (0)