Subject: | Misleading error messages (regression) |
I tried the following code with three versions of Moose. Obviously, the newest Mooose outputs a completely misleading error message, while the oldest tested version of Moose produced a very helpful message.
echo 'package C1; use Moose; use Notinstalled; has myattr=>(is=>"rw");1;' > C1.pm
echo 'package C2; use Moose; extends "C1"; has "+myattr"=>(default=>42);1;' > C2.pm
perl -MC2 -E1
# Moose 2.1202:
Could not find an attribute by the name of 'myattr' to inherit from in C2 at...
# Moose 2.08:
Can't locate Notinstalled.pm in @INC...
# Moose 2.02:
Couldn't load class (C1) because: Can't locate Notinstalled.pm in @INC...