Permalink
Browse files

Item11001: use warn() for damaged ,v because logger is not available …

…from here

git-svn-id: http://svn.foswiki.org/branches/Release01x01@12242 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Jul 27, 2011
1 parent 26f3e2d commit 679b5058410af6f38616da8f77d4d4665aff55ba
Showing with 2 additions and 4 deletions.
  1. +2 −4 core/lib/Foswiki/Store/VC/RcsLiteHandler.pm
@@ -225,8 +225,7 @@ sub _process {
}
my $fh;
unless ( open( $fh, '<', $this->{rcsFile} ) ) {
$this->{session}
->logger->log( 'warning', 'Failed to open ' . $this->{rcsFile} );
warn( 'Failed to open ' . $this->{rcsFile} );
$this->{state} = 'nocommav';
return;
}
@@ -348,8 +347,7 @@ sub _process {
}
unless ( $state eq 'parsed' ) {
my $error = $this->{rcsFile} . ' is corrupt; parsed up to ' . $state;
$this->{session}->logger->log( 'warning', $error );
warn( $this->{rcsFile} . ' is corrupt; parsed up to ' . $state );
#ASSERT(0) if DEBUG;
$headNum = 0;

0 comments on commit 679b505

Please sign in to comment.