X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=yarrg%2Fdb-idempotent-populate;h=9d7bab06a426193a15ed073473d6fb85a0bee203;hp=80ded466aefeb4ab89899fae5218dd7da2537e72;hb=2cf70baa979e0c460e4e46a9c1a53677b09a1972;hpb=5c4f4ea818dd0947a4ef28baa6f85d817f0aca44 diff --git a/yarrg/db-idempotent-populate b/yarrg/db-idempotent-populate index 80ded46..9d7bab0 100755 --- a/yarrg/db-idempotent-populate +++ b/yarrg/db-idempotent-populate @@ -120,6 +120,8 @@ END ; foreach my $commod (sort keys %commods) { my $c= $commods{$commod}; + die "no mass for $commod" unless defined $c->{Mass}; + die "no colume for $commod" unless defined $c->{Volume}; my @qa= ($c->{Mass}, $c->{Volume}, $commod); $insert->execute(@qa); $update->execute(@qa);