Modify

Opened 3 years ago

Closed 3 years ago

#775 closed defect (fixed)

ScpTask: mis-leading error message if 'host' attribute is not set

Reported by: pmartin Owned by: mrook
Priority: low Milestone: 2.4.8
Component: phing-tasks-ext Version: 2.4.7.1
Keywords: Cc:

Description

For the ScpTask, when not setting either host or username, the error message is :

Attribute 'hostname' and 'username' must be set

This is mis-leading, as the attributes names are host and username, with their corresponding setHost() and setUsername() -- there is no setHostname() method.

Attached is a patch (against trunk) that fixes this error message, so it reflects the real name of the expected attribute :

Attribute 'host' and 'username' must be set

Attachments (1)

scptask-wrong-error-message-host.patch (577 bytes) - added by pmartin 3 years ago.
Fixes the error message that's thrown when 'host' attribute is not set

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by pmartin

Fixes the error message that's thrown when 'host' attribute is not set

comment:1 Changed 3 years ago by mrook

  • Milestone changed from TBD to 2.4.8
  • Status changed from new to assigned

comment:2 Changed 3 years ago by mrook

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [1294]) Fixes #775 - change misleading error message

Add Comment

Modify Ticket

Action
as closed The owner will remain mrook.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.