Skip to content

Commit

Permalink
Use long name for system variables
Browse files Browse the repository at this point in the history
$! is the same as $OS_ERROR, but I think that OS_ERROR is clearer, and
have been used through the whole OmniPITR source, so changed it to match
style and readability.

It doesn't change how it works, just makes style compatible.
  • Loading branch information
Hubert depesz Lubaczewski committed Oct 2, 2014
1 parent b03608b commit 668fa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OmniPITR/Program/Archive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ sub make_all_necessary_compressions {
}

my ( $atime, $mtime ) = ( stat( $self->{ 'segment' } ) )[ 8, 9 ];
utime $atime, $mtime, $compressed_filename || $self->log->fatal( 'Error while updating atime/mtime to %s/%s: %s', $atime, $mtime, $! );
utime $atime, $mtime, $compressed_filename || $self->log->fatal( 'Error while updating atime/mtime to %s/%s: %s', $atime, $mtime, $OS_ERROR );

$self->{ 'state' }->{ 'compressed' }->{ $compression } = file_md5sum( $compressed_filename );
$self->save_state();
Expand Down

0 comments on commit 668fa6b

Please sign in to comment.