From: Zach Dennis Date: 2004-11-04T11:26:31+09:00 Subject: rescuing exceptions I'm doing some automated ftp'ing.... begin #ftp code here rescue Net::FTPPermError => e #do nothing for example sake end Even though I rescue the Net::FTPPermError, it still makes it to $stderr if there is an error. What am I missing here? I have tried to rescue all Exceptions, etc..and it still gets printed. Looking at the code for chdir we have: def chdir(dirname) if dirname == ".." begin voidcmd("CDUP") return rescue FTPPermError if $![0, 3] != "500" raise FTPPermError, $! end end end cmd = "CWD " + dirname voidcmd(cmd) end If I try to use chdir in my example above to a bogus directory it still gets printed to $stderr, even though my rescue clause picks it up. Shouldn't that be the end of it? Thanks, Zach