X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fdb-idempotent-populate;h=9d7bab06a426193a15ed073473d6fb85a0bee203;hb=fc9092694d98ee3737f8cdceef02d65cc6255dd4;hp=80ded466aefeb4ab89899fae5218dd7da2537e72;hpb=4e2f1b2a9105cd228da52e2e8a173cf6eb4bcb71;p=ypp-sc-tools.web-live.git 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);