Ah, unfortunately what I forgot to put in the original post is what rethrow_exception does...

sub rethrow_exception { my $exception = shift; # debug that the exception is being rethrow, so we can trace it in + debugs debug( 'Exception ' . ( ref($exception) || 'GENERIC Perl Died: ' . + $exception ) . ' being rethrown', 'true' ); my @trace = caller_string(); # Check if its a string... if ( !ref $exception ) { Zymonic::Exception::from_die->throw( error => 'GENERIC Perl Died: ' . $exception, email => 'sysadmin', zymocallers => \@trace ); } elsif ( ref($exception) !~ /Zymonic::Exception/ ) { Zymonic::Exception::from_die->throw( error => Dumper($exception), email => 'sysadmin', zymocallers => \@trace ); } else { # We have an exception - just rethrow it, adding additional tr +ace to it $exception->{zymocallers} = [ ( ref( $exception->{zymocallers} ) ? @{ $exception->{zymoc +allers} } : () ), @trace ]; $exception->rethrow(); } }

So effectively we're already doing what Carp can do in terms of stack tracing on the error.

The other issue with even trying to use Carp is that as far as I can tell Perl doesn't seem to have thrown an error before the attempt to reload fails - and yet the documentation suggests that there should have been an error previously. Since I don't have any evidence of that previous error I'm at a loss to know how to trap it and make Carp (or our own exception handling) give us more information about it...

But thank you - reading the Carp documentation has given me some other internal perl vars to check.


In reply to Re^2: Attempt to reload %s aborted gives insufficient information to find underlying issue by amasidlover
in thread Attempt to reload %s aborted gives insufficient information to find underlying issue by amasidlover

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.