From: Michael Albinus Date: Mon, 2 Jun 2014 14:05:35 +0000 (+0200) Subject: * net/tramp.el (with-tramp-progress-reporter): Add more traces. X-Git-Tag: emacs-25.0.90~2639^2~149 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bcb1a5bacd49eb8f27db1b33a867d949ba249b0e;p=emacs.git * net/tramp.el (with-tramp-progress-reporter): Add more traces. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 9be0cbe10a9..d5678d826b6 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -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)