Subject: | Attribute conflict error message neglects to mention the conflicting attribute |
The error message produced from conflicting attributes helpfully tells
you that there's a conflict, but then doesn't tell you what the conflict
actually is:
Couldn't load class (Pod::Weaver::Section::Name) because: Couldn't load
class (Pod::Weaver::Role::SectionWithOriginal) because: Role
'Pod::Weaver::Role::Transformer' has encountered an attribute conflict
during composition. This is fatal error and cannot be disambiguated. at
/usr/local/lib/perl/5.10.1/Moose/Meta/Role/Application/ToRole.pm line 61
Trivial patch to fix attached, and listed below for convenience:
62c62
< "during composition. This is fatal error and
cannot be disambiguated.");
---
Show quoted text
> "during composition. This is fatal error and
cannot be disambiguated. The attribute name was '$attribute_name'.");
Subject: | ToRole.pm.diff |
62c62
< "during composition. This is fatal error and cannot be disambiguated.");
---
> "during composition. This is fatal error and cannot be disambiguated. The attribute name was '$attribute_name'.");