Subject: | Need to report correct line numbers |
Date: | Mon, 04 Feb 2013 17:29:31 -0500 |
To: | bug-DBIx-NinjaORM [...] rt.cpan.org |
From: | Brian Voorhes <bvoorhes [...] thinkgeek.com> |
Currently, when the code dies for one reason or another please drop a
stack trace along with the error. An example change could be:
From:
# If the field exists in the list of filters, it needs to be
# defined. Being undefined probably indicates a problem in the
calling code.
croak "Called new() with '$field' declared but not defined"
if ! defined( $filters->{ $field } );
To:
# If the field exists in the list of filters, it needs to be
# defined. Being undefined probably indicates a problem in the
calling code.
if ( ! defined( $filters->{ $field } ) )
{
$log->error("Called new() with '$field' declared but not
defined");
croak "Called new() with '$field' declared but not defined"
}