- Timestamp:
- Mar 3, 2016 6:25:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r6092 r6093 161 161 set layerType [$layers get $layer.type] 162 162 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] {, }]" 164 164 continue 165 165 } … … 436 436 } 437 437 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] {, }]" 439 439 set mapType "projected" 440 440 } … … 468 468 itcl::body Rappture::Map::setType { type } { 469 469 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] {, }]" 471 471 } 472 472 $_tree set root "type" $type
Note: See TracChangeset
for help on using the changeset viewer.