From 1ecc75b00112fc6c3593bc9b74980d6b0fe6d88d Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Wed, 6 Dec 2023 18:42:45 +0100 Subject: [PATCH] use warn instead of say, which breaks the JSON output --- generate-cpansa-data.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-cpansa-data.pl b/generate-cpansa-data.pl index 7ce1378..0f29379 100644 --- a/generate-cpansa-data.pl +++ b/generate-cpansa-data.pl @@ -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);