Skip Menu |

This queue is for tickets about the Class-ReturnValue CPAN distribution.

Report information
The Basics
Id: 1366
Status: resolved
Priority: 0/
Queue: Class-ReturnValue

People
Owner: Nobody in particular
Requestors: michael.cartmell [...] lawpoint.com.au
Cc:
AdminCc:

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



From: Michael Cartmell <michael.cartmell [...] lawpoint.com.au>
To: "'bug-class-returnvalue [...] rt.cpan.org'" <bug-class-returnvalue [...] rt.cpan.org>
Subject: Class::ReturnValue
Date: Wed, 31 Jul 2002 09:48:43 +1000
Hi, I've been looking at this module & it seems quite usefull. There does seem to be a problem with giving an errno of 0. If I have $ret->return_error ( message => "Copied $count files", errno => 0, do_backtrace => 0 ); I get the following on stderr. 1 -> return_error called without an 'errno' parameter at ./a.pl line 7 I don't think I should get an error message & the error message is slightly cryptic. What is the "1" refering to? The following patch fixes those two problems. (I hope I got the patch right, I've not created one before). *** lib/Class/ReturnValue.pm Wed Jul 31 09:28:20 2002 --- lib/Class/ReturnValue.pm.orig Wed Jul 31 09:30:18 2002 *************** *** 212,219 **** do_backtrace => 1, @_); ! unless(defined $args{'errno'}) { ! carp "\$self -> return_error called without an 'errno' parameter"; return (undef); } --- 212,219 ---- do_backtrace => 1, @_); ! unless($args{'errno'}) { ! carp "$self -> return_error called without an 'errno' parameter"; return (undef); } Michael Cartmell Network & Operating Systems Analyst Lawpoint Pty. Limited Phone +612 9239 4958 Fax +612 9239 4900 E-mail michael.cartmell@lawpoint.com.au

Message body is not shown because sender requested not to inline it.

Date: Wed, 31 Jul 2002 01:38:37 -0400
From: Jesse <jesse [...] fsck.com>
To: Michael Cartmell via RT <bug-Class-ReturnValue [...] rt.cpan.org>
Subject: Re: [cpan #1366] Class::ReturnValue
Excellent. that should be in the next release. Thanks. On Tue, Jul 30, 2002 at 07:49:00PM -0400, Michael Cartmell via RT wrote: Show quoted text
> > > This message about Class-ReturnValue was sent to you by michael.cartmell@lawpoint.com.au via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=1366 > > > Hi, > > I've been looking at this module & it seems quite usefull. There does seem > to be a problem with giving an errno of 0. If I have > > $ret->return_error ( > message => "Copied $count files", > errno => 0, > do_backtrace => 0 > ); > > I get the following on stderr. > > 1 -> return_error called without an 'errno' parameter at ./a.pl line 7 > > I don't think I should get an error message & the error message is slightly > cryptic. What is the "1" refering to? > > The following patch fixes those two problems. (I hope I got the patch > right, I've not created one before). > > *** lib/Class/ReturnValue.pm Wed Jul 31 09:28:20 2002 > --- lib/Class/ReturnValue.pm.orig Wed Jul 31 09:30:18 2002 > *************** > *** 212,219 **** > do_backtrace => 1, > @_); > > ! unless(defined $args{'errno'}) { > ! carp "\$self -> return_error called without an 'errno' parameter"; > return (undef); > } > > --- 212,219 ---- > do_backtrace => 1, > @_); > > ! unless($args{'errno'}) { > ! carp "$self -> return_error called without an 'errno' parameter"; > return (undef); > } > > > Michael Cartmell > Network & Operating Systems Analyst > Lawpoint Pty. Limited > Phone +612 9239 4958 > Fax +612 9239 4900 > E-mail michael.cartmell@lawpoint.com.au > >
-- jesse reed vincent -- root@eruditorum.org -- jesse@fsck.com 70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90 "Transported to a surreal landscape, a young girl kills the first woman she meets, then teams up with three complete strangers to kill again." -- TV listing for The Wizard of Oz in the Marin Paper