Changeset 973

Show
Ignore:
Timestamp:
06/12/06 13:39:12
Author:
miyagawa
Message:

rewrite config doesn't die even if it can't rewrite because of permission problem

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r887 r973  
    9696    if ($count) { 
    9797        File::Copy::copy( $self->{config_path}, $self->{config_path} . ".bak" ); 
    98         open my $fh, ">", $self->{config_path} or $self->error("$self->{config_path}: $!"); 
     98        open my $fh, ">", $self->{config_path} or return $self->log(error => "$self->{config_path}: $!"); 
    9999        print $fh $data; 
    100100        close $fh;