chiark / gitweb /
Improve message slightly
[ypp-sc-tools.db-test.git] / yarrg / web / routetrade
index 4d8cd9f9ae8b77881616d907aa130b2f90ca19b2..9fde77e7aa6783104b92fd80d636a0c0c45a970d 100644 (file)
@@ -239,6 +239,12 @@ $addcols->({ DoReverse => 1 },
 % }
 
 <%perl>
+
+if (!@flows) {
+       print 'No profitable trading opportunities were found.';
+       return;
+}
+
 foreach my $f (@flows) {
 
        $f->{MaxQty}= $f->{'org_qty_agg'} < $f->{'dst_qty_agg'}
@@ -340,7 +346,7 @@ Route contains archipelago(es), not just specific islands.
 Route is complex - it visits the same island several times
 and isn't a simple loop.
 % }
-Therefore, optimal trade pattern not calculated.
+Therefore, optimal voyage trade plan not calculated.
 
 % } else { # ========== OPTMISATION ==========
 <%perl>