]> code.delx.au - gnu-emacs/commitdiff
* net/tramp.el (with-tramp-progress-reporter): Add more traces.
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 2 Jun 2014 14:05:35 +0000 (16:05 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 2 Jun 2014 14:05:35 +0000 (16:05 +0200)
lisp/net/tramp.el

index 9be0cbe10a97eff3055f1055c8068aa3b55f410b..d5678d826b62e67cf09a29d26974197608b8474a 100644 (file)
@@ -1673,7 +1673,11 @@ without a visible progress reporter."
                                  #'tramp-progress-reporter-update pr)))))))
        (unwind-protect
            ;; Execute the body.
-           (prog1 (progn ,@body) (setq cookie "done"))
+           (prog1
+              (condition-case err
+                  (progn ,@body)
+                (error (tramp-message ,vec 6 "%s" (error-message-string err))))
+            (setq cookie "done"))
          ;; Stop progress reporter.
          (if tm (tramp-compat-funcall 'cancel-timer tm))
          (tramp-message ,vec ,level "%s...%s" ,message cookie)