Commit 8d4f1e3b authored by Michael Albinus's avatar Michael Albinus
Browse files

Improve error handling in tramp-adb.el

* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
Improve error handling.
parent a94202b7
......@@ -575,8 +575,10 @@ Emacs dired can't find files."
(let ((tmpfile (tramp-compat-make-temp-file filename)))
v 3 (format "Fetching %s to tmp file %s" filename tmpfile)
(when (tramp-adb-execute-adb-command v "pull" localname tmpfile)
(delete-file tmpfile)
;; "adb pull ..." does not always return an error code.
(when (or (tramp-adb-execute-adb-command v "pull" localname tmpfile)
(not (file-exists-p tmpfile)))
(ignore-errors (delete-file tmpfile))
v 'file-error "Cannot make local copy of file `%s'" filename))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment