Changeset 6093 for trunk


Ignore:
Timestamp:
Mar 3, 2016 6:25:00 PM (8 years ago)
Author:
ldelgass
Message:

fix error msgs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/map.tcl

    r6092 r6093  
    161161        set layerType [$layers get $layer.type]
    162162        if { ![info exists _layerTypes($layerType)] } {
    163             puts stderr "ERROR: invalid layer type \"$layerType\": should be one of [array names _layerTypes]"
     163            puts stderr "ERROR: invalid layer type \"$layerType\": should be one of [join [array names _layerTypes] {, }]"
    164164            continue
    165165        }
     
    436436    }
    437437    if { ![info exists _mapTypes($mapType)] } {
    438         puts stderr "ERROR: unknown map type \"$mapType\": should be one of [array names _mapTypes]"
     438        puts stderr "ERROR: unknown map type \"$mapType\": should be one of [join [array names _mapTypes] {, }]"
    439439        set mapType "projected"
    440440    }
     
    468468itcl::body Rappture::Map::setType { type } {
    469469    if { ![info exists _mapTypes($type)] } {
    470         error "unknown map type \"$type\": should be one of [array names _mapTypes]"
     470        error "unknown map type \"$type\": should be one of [join [array names _mapTypes] {, }]"
    471471    }
    472472    $_tree set root "type" $type
Note: See TracChangeset for help on using the changeset viewer.