projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da12d1c
)
always test if file open succeeded
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 14 Apr 2010 12:28:54 +0000
(12:28 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 14 Apr 2010 12:28:54 +0000
(12:28 +0000)
bin/irspy-dump.pl
patch
|
blob
|
history
diff --git
a/bin/irspy-dump.pl
b/bin/irspy-dump.pl
index
4e62a8b
..
e112b91
100755
(executable)
--- a/
bin/irspy-dump.pl
+++ b/
bin/irspy-dump.pl
@@
-33,7
+33,7
@@
foreach my $i (1..$n) {
print " $i/$n (", int($i*100/$n), "%)\n" if $i % $step == 0;
my $rec = $rs->record($i-1);
my $xml = $rec->render();
- open F, ">$i.xml";
+ open F, ">$i.xml" or die "open $i.xml: $!\n";
print F $xml;
close F;
}