New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81602


Ignore:
Timestamp:
08/02/11 15:19:46 (4 years ago)
Author:
raimue@…
Message:

port/port.tcl:
Output errors on stderr
Add consistency to messages about ambiguity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r81475 r81602  
    41574157                            lappend errlst "--[lindex $e 0]" 
    41584158                        } 
    4159                         return -code error "${action} --${key} is ambiguous: \n  [join $errlst "\n "]" 
     4159                        return -code error "\"port ${action} --${key}\" is ambiguous: \n  port ${action} [join $errlst "\n  port ${action} "]" 
    41604160                    } 
    41614161                    set key   [lindex [lindex $kopts 0] 0] 
     
    43144314        } else { 
    43154315            if {[llength $actions] > 1} { 
    4316                 puts "Ambiguous action \"$action\": could be any of {$actions}." 
     4316                ui_error "\"port ${action}\" is ambiguous: \n  port [join $actions "\n  port "]" 
    43174317            } else { 
    4318                 puts "Unrecognized action \"$action\"" 
     4318                ui_error "Unrecognized action \"port $action\"" 
    43194319            } 
    43204320            set action_status 1 
Note: See TracChangeset for help on using the changeset viewer.