198 |
|
|
199 |
$log->logdie("save_ds without cache_file -- did you called gs_get before?") unless ($self->{'cache_file'}); |
$log->logdie("save_ds without cache_file -- did you called gs_get before?") unless ($self->{'cache_file'}); |
200 |
|
|
201 |
foreach my $e (qw/ds current_filename headline/) { |
$log->logdie("need ds") unless ($arg->{ds}); |
202 |
$log->warn("missing $e") unless $arg->{$e}; |
|
203 |
|
foreach my $e (qw/current_filename headline/) { |
204 |
|
my $mfn = $arg->{ds}->{000}->[0] || '?'; |
205 |
|
$log->warn("missing $e in record $mfn") unless $arg->{$e}; |
206 |
} |
} |
207 |
|
|
208 |
$log->debug("creating storable cache file ",$self->{'cache_file'}); |
$log->debug("creating storable cache file ",$self->{'cache_file'}); |