Skip to content

Error handling? #4

Open
Open
@dgutov

Description

@dgutov

If any of the options are wrong (hostname, username or password), EM::FtpClient::Session doesn't call the callback, and EM::FtpClient::SyncSession similarly freezes.

I tried to fix that by simply adding errback to @control_connection in Session#initialize, but:

  1. It doesn't get called anyway if the host is wrong.
  2. If it's just the username that is wrong, the callback gets called, but I have no way to distinguish this situation from when everything went right. E.g., control_connection.error? still returns false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions