From: Ian Jackson Date: Mon, 29 Mar 2010 22:19:45 +0000 (+0100) Subject: where-vessels: complain if ocean or pirate are empty string X-Git-Tag: 6.5.1^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=faba831bf482467efd38e779aada81746a90996f where-vessels: complain if ocean or pirate are empty string --- diff --git a/yarrg/where-vessels b/yarrg/where-vessels index 9b8c772..272a114 100755 --- a/yarrg/where-vessels +++ b/yarrg/where-vessels @@ -133,6 +133,9 @@ proc argdefaults {} { if {[info exists ocean]} { lappend cmd --ocean $ocean } if {[info exists pirate]} { lappend cmd --pirate $pirate } manyset [split [eval exec $cmd] " "] ocean pirate + if {![llength $ocean] || ![llength $pirate]} { + error "$ocean $pirate ?" + } } lappend scraper $ocean }