Changeset 15168

Show
Ignore:
Timestamp:
02.04.2008 18:17:36 (11 years ago)
Author:
ak19
Message:

When file handling errors appear, error variable printed out too

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/gsConvert.pl

    r15152 r15168  
    676676    # open the original file for reading 
    677677    unless(open(FIN, "<$html_file")) {  
    678     print STDERR "gsConvert.pl: Unable to open $html_file for reading absolute urls...ERROR\n"; 
     678    print STDERR "gsConvert.pl: Unable to open $html_file for reading absolute urls...ERROR: $!\n"; 
    679679    return 0; 
    680680    } 
     
    733733    # Recreate the original file for writing the updated contents 
    734734    unless(open(FOUT, ">$html_file")) {  # open it as a new file for writing 
    735     print STDERR "gsConvert.pl: Unable to open $html_file for writing relative links...ERROR\n"; 
     735    print STDERR "gsConvert.pl: Unable to open $html_file for writing relative links...ERROR: $!\n"; 
    736736    return 0; 
    737737    }