emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process filter error in copy-file and error handling


From: Richard Stallman
Subject: Re: Process filter error in copy-file and error handling
Date: Sat, 04 Aug 2007 23:05:46 -0400

       (defun my-upload-file(filename)
         (copy-file local-file
                   (html-site-current-local-to-remote filename nil)
                    0)
         (message "Upload ready"))

    and here is what I get in the message buffer:

       Doing CD... [12 times]
       Copying myimg.jpg to /ftp:address@hidden:/htdocs/img/... [2 times]
       error in process filter: ange-ftp-cf2: Opening output file: FTP 
    Error: "550 /htdocs/img/myimg.jpg: No such file or directory", 
    /ftp:address@hidden:/htdocs/img/myimg.jpg

The bug is that the error occurs in a filter, where it is caught.  The
actual file handler needs to signal an error, which will stop
execution of your function.

So I think this is a bug in Tramp.

Michael, would you please fix this and ack?
Please put the fix in Emacs 22 if the bug is present there.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]