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 #1

Updated by shugo (Shugo Maeda) over 15 years ago

  • Status changed from Open to Assigned
  • Assignee set to shugo (Shugo Maeda)

=begin

=end

Actions #2

Updated by shugo (Shugo Maeda) over 15 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r26605.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0