develooper Front page | perl.perl5.porters | Postings from June 2022

Re: Pre-RFC: add version numbers to errors/warnings containingpackage names

Thread Previous
From:
"G.W. Haywood" via perl5-porters
Date:
June 1, 2022 09:36
Subject:
Re: Pre-RFC: add version numbers to errors/warnings containingpackage names
Message ID:
ed5d63e2-b744-23d5-1587-e9a9da2b3a19@jubileegroup.co.uk
Hi there,

On Wed, 1 Jun 2022, Ovid wrote:
> On Sat, May 28, 2022 at 9:18 PM Darren Duncan wrote:
>> On 2022-05-28 4:16 a.m., Ovid wrote:
>>> 
>>> Not sure what it would take to do this, but this kind of error ...
>>>
>>> Can't locate object method "some_method" via package "Some::Class"
>>> ... CPAN testers ... Type::Tiny released eight years ago.
>>> It would be nice if the error looked like this:
>>>
>>> Can't locate object method "some_method" via package "Some::Class, version 1.01"
>> 
>> I agree with this proposed change, or something similar to it. -- Darren
>> Duncan
>> 
> 
> Anyone else have an opinion on this?

It can't hurt to have more useful information, but I always worry about
breaking things which rely on parsing output.  I do that myself quite a
bit in error handling routines, although thankfully nothing which would
trip over this one.  Recently I've seen other logging changes proposed;
maybe one feature could guard them all?

-- 

73,
Ged.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About