diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet/Station.pm b/lib/Lacuna/DB/Result/Map/Body/Planet/Station.pm index 01c66adb..9561f62f 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet/Station.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet/Station.pm @@ -105,13 +105,13 @@ sub in_jurisdiction { $type = 'star' if (ref $target eq 'Lacuna::DB::Result::Map::Star'); $type = 'body' if (ref $target =~ /Lacuna::DB::Result::Map::Body/); unless ($type) { - confess [1009, 'Invalid target '.ref $target]; + confess [1009, 'Invalid target '.ref $target. ' '.$target->id]; } my $class = ( $type eq 'star' ) ? 'Lacuna::DB::Result::Map::Star' : 'Lacuna::DB::Result::Map::Body'; my $search = Lacuna->db->resultset($class); my $find = $search->find($target->id); unless (defined $find) { - confess [1009, 'Invalid target '.ref $target]; + confess [1009, 'Invalid target '.ref $target. ' '.$target->id]; } if ($type eq 'star' && $find->station_id != $self->id) { confess [1009, 'Target is not in the station\'s jurisdiction.'];