Changeset 27638

Show
Ignore:
Timestamp:
18.06.2013 10:09:38 (6 years ago)
Author:
jmt12
Message:

Change it so failure to open a filehandle isn't fatal - leave it up to the caller to deal with

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/perllib/FileUtils/LocalFS.pm

    r27569 r27638  
    292292    $mode_symbol .= ':' . $encoding; 
    293293  } 
    294   if (!open($$fh_ref, $mode_symbol, $path)) 
    295   { 
    296     &FileUtils::printError('Failed to open file for ' . $mode . ': ' . $path, 1); 
    297   } 
    298   return 1; 
     294  return open($$fh_ref, $mode_symbol, $path); 
    299295} 
    300296## openFileHandle()