From 8cefdbc9ca2dc6e16e123def05ef0a3933d7d10a Mon Sep 17 00:00:00 2001 From: Mark Lemming Date: Wed, 4 Sep 2013 15:04:59 -0600 Subject: [PATCH] Fixed error message. --- lib/Lacuna.pm | 2 +- lib/Lacuna/DB/Result/Mission.pm | 2 +- var/www/public/changes.txt | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna.pm b/lib/Lacuna.pm index b56d531c..3d920476 100644 --- a/lib/Lacuna.pm +++ b/lib/Lacuna.pm @@ -7,7 +7,7 @@ use Config::JSON; useall __PACKAGE__; -our $VERSION = 3.0894; +our $VERSION = 3.0895; my $config = Config::JSON->new('/data/Lacuna-Server/etc/lacuna.conf'); my $db = Lacuna::DB->connect($config->get('db/dsn'),$config->get('db/username'),$config->get('db/password'), { mysql_enable_utf8 => 1}); diff --git a/lib/Lacuna/DB/Result/Mission.pm b/lib/Lacuna/DB/Result/Mission.pm index 31a96189..3603d5dc 100644 --- a/lib/Lacuna/DB/Result/Mission.pm +++ b/lib/Lacuna/DB/Result/Mission.pm @@ -287,7 +287,7 @@ sub check_objectives { } if ($glyph_on_body->quantity < $ghash{$glyph->{type}}) { confess [ 1002, - "You don't have ".$ghash{$glyph->{type}}.' glyphs of '.$glyph->{type}.', you only have '.$glyph->quantity.'.']; + "You don't have ".$ghash{$glyph->{type}}.' glyphs of '.$glyph->{type}.', you only have '.$glyph_on_body->quantity.'.']; } } } diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 64ecd3f7..ffaa0638 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,3 +1,6 @@ +3.0895: + - Fix: Bad error message when not enough glyphs for a mission fixed. + 3.0894: - API: repair_list checks number of fed building ids, rejection of call if over max building count. - Fix: Missions now go past part2. -- 2.51.2