Modified: trunk/base/src/port/port.tcl (81601 => 81602)
--- 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