Skip Menu |

This queue is for tickets about the Error CPAN distribution.

Report information
The Basics
Id: 107427
Status: stalled
Priority: 0/
Queue: Error

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: -MError=:warndie is unhelpful in long strings on the stack
Since Error=:warndie tries to stringifiy arguments to function calls, it can produce some very odd output if functions are passed e.g. multi-megabyte binary strings as arguments, or entire contents of files from disk, or other odd places. Perhaps it would be best for it to detect the presence of nonprintables and escape those, and also elide the maximum length. And while we're at it, more tuneability of when it prints at warn or die or both. And also lets finally extract it out of Error.pm into its own, more sensible module name. [these are largely notes-to-self] -- Paul Evans
On Wed Sep 30 11:01:10 2015, PEVANS wrote: Show quoted text
> Since Error=:warndie tries to stringifiy arguments to function calls, > it can produce some very odd output if functions are passed e.g. > multi-megabyte binary strings as arguments, or entire contents of > files from disk, or other odd places. > > Perhaps it would be best for it to detect the presence of > nonprintables and escape those, and also elide the maximum length. > > And while we're at it, more tuneability of when it prints at warn or > die or both. > > And also lets finally extract it out of Error.pm into its own, more > sensible module name. >
Hi Paul! Are you planning on implementing these improvements soon, or can I mark this ticket as stalled? "Error" has been deprecated anyway for years now, anyway. Show quoted text
> [these are largely notes-to-self]
On Sat Aug 19 15:49:07 2017, SHLOMIF wrote: Show quoted text
> Are you planning on implementing these improvements soon, or can I > mark this ticket as stalled? "Error" has been deprecated anyway for > years now, anyway.
Stall it for now. I might get around to it sometime. It remains a good idea to do, but it's not high on my list of things to think about. If someone else gets there first then great -- Paul Evans
On Sat Aug 19 17:44:48 2017, PEVANS wrote: Show quoted text
> On Sat Aug 19 15:49:07 2017, SHLOMIF wrote:
> > Are you planning on implementing these improvements soon, or can I > > mark this ticket as stalled? "Error" has been deprecated anyway for > > years now, anyway.
> > Stall it for now. I might get around to it sometime. >
Marking as stalled then - thanks! Show quoted text
> It remains a good idea to do, but it's not high on my list of things > to think about. If someone else gets there first then great