Subject: | croaks report wrong point in the stack |
For example...
$ perl -wle 'package Foo; use Moose; extends'
Must derive at least one class at
/usr/local/lib/site_perl/Moose/Exporter.pm line 173
That should report "at -e line 1" where the real user mistake occurred.
This is because Carp is insufficiently smart to know where to report from.
Consider using Carp::Clan which can skip all the Moose guts in the stack
and report at the correct user level.