From bcb1a5bacd49eb8f27db1b33a867d949ba249b0e Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 2 Jun 2014 16:05:35 +0200 Subject: [PATCH] * net/tramp.el (with-tramp-progress-reporter): Add more traces. --- lisp/net/tramp.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.39.2