Skip to content

Commit

Permalink
Merge pull request #1 from CPAN-Security/fix/avoid-warnings-to-stdout
Browse files Browse the repository at this point in the history
use warn instead of say, which breaks the JSON output
  • Loading branch information
stigtsp authored Dec 6, 2023
2 parents 34ba70a + 1ecc75b commit ecc1031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-cpansa-data.pl
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ ($report)
}
}
if ($gt_count > 1 || $lt_count > 1) {
say "$report->{id} has more than 1 range bundled together in '$version'";
warn "$report->{id} has more than 1 range bundled together in '$version'\n";
}
elsif ($gt_count == 1 && $lt_count == 1 && $lower_end > $higher_end) {
say "$report->{id} has invalid range in '$version'";
warn "$report->{id} has invalid range in '$version'\n";
}
}
push @sanitized_versions, join(',', @sanitized_ands);
Expand Down

0 comments on commit ecc1031

Please sign in to comment.