Revision: 81602 http://trac.macports.org/changeset/81602 Author: raimue@macports.org Date: 2011-08-02 15:19:46 -0700 (Tue, 02 Aug 2011) Log Message: ----------- port/port.tcl: Output errors on stderr Add consistency to messages about ambiguity Modified Paths: -------------- trunk/base/src/port/port.tcl Modified: trunk/base/src/port/port.tcl =================================================================== --- trunk/base/src/port/port.tcl 2011-08-02 21:23:07 UTC (rev 81601) +++ trunk/base/src/port/port.tcl 2011-08-02 22:19:46 UTC (rev 81602) @@ -4156,7 +4156,7 @@ foreach e $kopts { lappend errlst "--[lindex $e 0]" } - return -code error "${action} --${key} is ambiguous: \n [join $errlst "\n "]" + return -code error "\"port ${action} --${key}\" is ambiguous: \n port ${action} [join $errlst "\n port ${action} "]" } set key [lindex [lindex $kopts 0] 0] set kargc [lindex [lindex $kopts 0] 1] @@ -4313,9 +4313,9 @@ set action_proc [get_action_proc $action] } else { if {[llength $actions] > 1} { - puts "Ambiguous action \"$action\": could be any of {$actions}." + ui_error "\"port ${action}\" is ambiguous: \n port [join $actions "\n port "]" } else { - puts "Unrecognized action \"$action\"" + ui_error "Unrecognized action \"port $action\"" } set action_status 1 break