Changeset 200


Ignore:
Timestamp:
01/14/06 17:26:21 (18 years ago)
Author:
thauvin
Message:
  • avoid die() if mkpath failed, add reason into log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData/Repository.pm

    • Property cvs2svn:cvs-rev changed from 1.74 to 1.75
    r197 r200  
    691691            ); 
    692692        } else { 
    693             if( ! File::Path::mkpath($dirname)) {  
     693            eval { mkpath($dirname) }; 
     694            if($@) { 
    694695                $self->logging( 
    695                     4, "Can't create directory %s",  
    696                     $dirname 
     696                    4, "Can't create directory %s: %s",  
     697                    $dirname, 
     698                    $@ 
    697699                ); 
    698700                return 0; 
Note: See TracChangeset for help on using the changeset viewer.