From: Ian Jackson Date: Tue, 27 Oct 2009 16:08:08 +0000 (+0000) Subject: Fix error message for ambiguous vessels in capacities X-Git-Tag: 5.1~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=2193f00e651a9c9cfc1130e1ba4d32dd050b437f Fix error message for ambiguous vessels in capacities --- diff --git a/yarrg/web/check_capacitystring b/yarrg/web/check_capacitystring index a79b6f1..4fd2054 100644 --- a/yarrg/web/check_capacitystring +++ b/yarrg/web/check_capacitystring @@ -140,7 +140,7 @@ my $parse_term= sub { dbw_lookup_string($_,$sth,1,1,2, "Ship name `$_' not understood.", "Too many matching ship types.", - sub { "Ambiguous - could be $_[0]" }); + sub { "Ambiguous - could be $_[1]" }); expected_error($emsg) if defined $emsg; $debugf->("TERM NAME SHIP '$ship' @smv"); $show_answer= 1;