Changeset 12622


Ignore:
Timestamp:
2006-08-30T21:29:15+12:00 (18 years ago)
Author:
jrm21
Message:

if we can't open an output file, also give the operating system's
error message with our error message

File:
1 edited

Legend:

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

    r12619 r12622  
    294294    if ($out !~ /^(STDERR|STDOUT)$/i) {
    295295    open (OUT, ">$out") ||
    296         (&gsprintf(STDERR, "{common.cannot_open_output_file}\n", $out) && die);
     296        (&gsprintf(STDERR, "{common.cannot_open_output_file}: $!\n", $out) && die);
    297297    $out = 'import::OUT';
    298298    $close_out = 1;
Note: See TracChangeset for help on using the changeset viewer.