Skip to content

Commit

Permalink
Item11001: use warn() for damaged ,v because logger is not available …
Browse files Browse the repository at this point in the history
…from here

git-svn-id: http://svn.foswiki.org/trunk@12243 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Jul 27, 2011
1 parent 636f9a8 commit b41c033
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/lib/Foswiki/Store/VC/RcsLiteHandler.pm
Expand Up @@ -225,8 +225,7 @@ sub _process {
} }
my $fh; my $fh;
unless ( open( $fh, '<', $this->{rcsFile} ) ) { unless ( open( $fh, '<', $this->{rcsFile} ) ) {
$this->{session} warn( 'Failed to open ' . $this->{rcsFile} );
->logger->log( 'warning', 'Failed to open ' . $this->{rcsFile} );
$this->{state} = 'nocommav'; $this->{state} = 'nocommav';
return; return;
} }
Expand Down Expand Up @@ -348,8 +347,7 @@ sub _process {
} }


unless ( $state eq 'parsed' ) { unless ( $state eq 'parsed' ) {
my $error = $this->{rcsFile} . ' is corrupt; parsed up to ' . $state; warn( $this->{rcsFile} . ' is corrupt; parsed up to ' . $state );
$this->{session}->logger->log( 'warning', $error );


#ASSERT(0) if DEBUG; #ASSERT(0) if DEBUG;
$headNum = 0; $headNum = 0;
Expand Down

0 comments on commit b41c033

Please sign in to comment.