Permalink
Browse files

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

…from here

git-svn-id: http://svn.foswiki.org/trunk@12243 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Jul 27, 2011
1 parent 636f9a8 commit b41c0330320243a73ff9e06f286b0d33afe2bf43
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 b41c033

Please sign in to comment.