Changeset 19665 for trunk/base


Ignore:
Timestamp:
Sep 22, 2006, 4:01:18 PM (14 years ago)
Author:
jberry@…
Message:

Resolve #10766, sortof. Improve error when no current port is available.
We should have better handling of the empty-portlist situation, but it's somewhat hard because we need semaphore for empty list, since tcl has no concept of null. That larger fix will have to wait til some future date.

File:
1 edited

Legend:

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

    r19664 r19665  
    368368        if {[catch {set ctx [dportopen $url]} result]} {
    369369                if {!$quiet} {
    370                         puts stderr "Can't map the URL '$url' to a port description file (${result}). Please verify that the directory and portfile syntax are correct."
     370                        ui_msg "Can't map the URL '$url' to a port description file (\"${result}\")."
     371                        ui_msg "Please verify that the directory and portfile syntax are correct."
    371372                }
    372373        } else {
     
    484485        set portname [url_to_portname $url]
    485486        if {$portname == ""} {
    486                 ui_error "To use the current port, you must be in a port's directory"
     487                ui_msg "To use the current port, you must be in a port's directory."
     488                ui_msg "(you might also see this message if a pseudo-port such as"
     489                ui_msg "outdated or installed expands to no ports)."
    487490        }
    488491       
Note: See TracChangeset for help on using the changeset viewer.