Project

General

Profile

Actions

Feature #2693

closed

unfriendly exception when command executed for Net::FTP which is not connected

Added by yugui (Yuki Sonoda) over 15 years ago. Updated about 14 years ago.

Status:
Closed
Target version:
-
[ruby-dev:40258]

Description

=begin
#2291はr25518により修正されましたが、他のコマンドは依然としてソケットを開いていることを確認していません。
このため、@sock.writeによりNoMethodErrorが発生します。

require 'net/ftp'
f = Net::FTP.new
f.quit #=> NoMethodError

何か他のNet::FTP以下に定義された例外を投げる方が親切だと思います。
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0