diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ftp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index ca2c00a790..2b195c2bab 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -668,9 +668,9 @@ module Net begin voidcmd("CDUP") return - rescue FTPPermError - if $![0, 3] != "500" - raise FTPPermError, $! + rescue FTPPermError => e + if e.message[0, 3] != "500" + raise e end end end |