Ignore:
Timestamp:
2008-04-02T18:17:36+13:00 (16 years ago)
Author:
ak19
Message:

When file handling errors appear, error variable printed out too

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.