chiark / gitweb /
Fix error message for ambiguous vessels in capacities
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 27 Oct 2009 16:08:08 +0000 (16:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 27 Oct 2009 16:08:08 +0000 (16:08 +0000)
yarrg/web/check_capacitystring

index a79b6f1ac06f1dffbed02820e33a819a1e31bb29..4fd20546a4b3008b4140de42826cda1b019896dd 100644 (file)
@@ -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;