summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-10-22 13:52:46 +0000
committerfukachan <fukachan>2006-10-22 13:52:46 +0000
commit13c37cabaaebe654183f9851a2e5a7b338e738aa (patch)
tree888eb3ca0a147a4c911231f8cffb6408d9f8e605
parent43baa7707d9eebcb8db92f5787d2a851abd605d2 (diff)
downloadfml8-13c37cabaaebe654183f9851a2e5a7b338e738aa.tar.gz
fml8-13c37cabaaebe654183f9851a2e5a7b338e738aa.tar.bz2
fml8-13c37cabaaebe654183f9851a2e5a7b338e738aa.zip
more error logs.
move $curproc definition to near message logging.
-rw-r--r--fml/lib/FML/Body.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/fml/lib/FML/Body.pm b/fml/lib/FML/Body.pm
index b2115baa..16d1f692 100644
--- a/fml/lib/FML/Body.pm
+++ b/fml/lib/FML/Body.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Body.pm,v 1.4 2006/05/13 11:50:31 fukachan Exp $
+# $FML: Body.pm,v 1.5 2006/07/09 12:11:11 fukachan Exp $
#
package FML::Body;
@@ -116,6 +116,10 @@ sub db_open
$self->{ _db } = \%db;
return \%db;
}
+ else {
+ my $curproc = $self->{ _curproc };
+ $curproc->logerror("FML::Body: db_open: directory unspecified");
+ }
return undef;
}
@@ -155,13 +159,13 @@ my $global_default_checksum_type = 'md5';
sub set_checksum_type
{
my ($self, $type) = @_;
- my $curproc = $self->{ _curproc };
if ($type eq 'md5') {
$self->{ _type } = $type;
}
else {
- $curproc->logerror("unsupported checksum: $type");
+ my $curproc = $self->{ _curproc };
+ $curproc->logerror("FML::Body: unsupported checksum: $type");
}
}