Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 37760
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: stevan.little [...] gmail.com
Requestors: johanl [...] cpan.org
Cc:
AdminCc:

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



Subject: Don't display internal modules when confessing
When I mistype is => "rw " and get an error message, the confess stack trace contains lots of internal Moose modules, making it hard to see where the mistake in my code is located. It would be useful to report the stack trace from the perspective of non-Moose callers only. [ another minor thing: whenever error/log messages contain error values it's useful to embed them in delimiters like () or "" so any whitespace is clearly visible (which bit me in the example above) ] /J
I think that only reporting errors from the perspective of non-Moose modules would be hurtful in many cases with Moose. Not having the Moose context will make the errors even more cryptic and certainly make it very difficult for error diagnosis by someone who knows the internals. Moose is just not that simple a module where the internals part of a stack trace can be ignored by casual users when an error arises, or where all the possible combinations of error conditions can be determined in advance and handled more specifically so as to not show the Moose guts. If you feel differently I am open to debate on this subject, however I think that debate is better taken to the mailing list (moose@perl.org) or to IRC #moose@irc.perl.org as specifified in the "FEATURE_REQUESTS " section of the Moose POD (http://search.cpan.org/~stevan/Moose-0.54/lib/Moose.pm#FEATURE_REQUESTS). Thanks, - Stevan
Subject: Re: [rt.cpan.org #37760] Don't display internal modules when confessing
Date: Fri, 18 Jul 2008 19:49:46 +0300
To: Stevan Little via RT <bug-Moose [...] rt.cpan.org>
From: Yuval Kogman <nothingmuch [...] woobling.org>
That said, the error branch does contain significant work towards improving this, so we could write a use Moose::Errors qw(:short); or something like that which tries to make DWIM, non developer error messages. This wouldn't be too hard once the branch is integrated On Thu, Jul 17, 2008 at 14:47:56 -0400, Stevan Little via RT wrote: Show quoted text
> Queue: Moose > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=37760 > > > I think that only reporting errors from the perspective of non-Moose modules would be > hurtful in many cases with Moose. Not having the Moose context will make the errors even > more cryptic and certainly make it very difficult for error diagnosis by someone who knows > the internals. Moose is just not that simple a module where the internals part of a stack trace > can be ignored by casual users when an error arises, or where all the possible combinations > of error conditions can be determined in advance and handled more specifically so as to not > show the Moose guts. > > If you feel differently I am open to debate on this subject, however I think that debate is > better taken to the mailing list (moose@perl.org) or to IRC #moose@irc.perl.org as specifified > in the "FEATURE_REQUESTS " section of the Moose POD > (http://search.cpan.org/~stevan/Moose-0.54/lib/Moose.pm#FEATURE_REQUESTS). > > Thanks, > > - Stevan
-- Yuval Kogman <nothingmuch@woobling.org> http://nothingmuch.woobling.org 0xEBD27418
The error branch has made it to CPAN, so users can now report errors however they like.