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