Commit c5679256 authored by Peter Eisentraut's avatar Peter Eisentraut

Write error messages about duplicate OIDs to stderr

parent 33a1c214
...@@ -137,8 +137,8 @@ my $found = 0; ...@@ -137,8 +137,8 @@ my $found = 0;
foreach my $oid (keys %oidcounts) foreach my $oid (keys %oidcounts)
{ {
next unless $oidcounts{$oid} > 1; next unless $oidcounts{$oid} > 1;
print "Duplicate oids detected:\n" if !$found; print STDERR "Duplicate OIDs detected:\n" if !$found;
print "$oid\n"; print STDERR "$oid\n";
$found++; $found++;
} }
die "found $found duplicate OID(s) in catalog data\n" if $found; die "found $found duplicate OID(s) in catalog data\n" if $found;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment