From 936d5e5bb63358da281188d9c8e9e21341df9444 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 21 Dec 2014 16:19:26 +0100 Subject: [PATCH] Fix last patch. --- lisp/net/tramp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index fdb00c813d6..7c795950bf4 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3088,7 +3088,8 @@ User is always nil." (with-parsed-tramp-file-name filename nil (unwind-protect (if (not (file-exists-p filename)) - (tramp-message v 0 "(New file)") + (tramp-error + v 'file-error "File `%s' not found on remote host" filename) (with-tramp-progress-reporter v 3 (format "Inserting `%s'" filename) -- 2.39.2