Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8828 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] #find_servers raises painful-looking exception when no servers are found

Reported by: halorgium Assigned to: minam
Priority: normal Milestone: 1.x
Component: Capistrano Version: edge
Severity: normal Keywords:
Cc:

Description

This bug can be demonstrated by doing the following anywhere:

cap COMMAND=foo invoke

It generates a really long exception message containing the description of the task.

I have refactored how the #find_servers_for_task method uses the options for the given task. It now ignores the :desc value.

I have also created a new exception NoMatchingServersError, this is raise when the #execute_on_servers method fails to find any servers.

This also remedies the "cap shell" crash issues, as this exception is caught.

Attachments

no_servers_found.patch (13.2 kB) - added by halorgium on 07/01/07 12:35:24.

Change History

07/01/07 12:35:24 changed by halorgium

  • attachment no_servers_found.patch added.

07/21/07 21:54:33 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

closed in [7205]