Subject: | Opaque error message for missing requirement during role composition |
Date: | Mon, 2 Mar 2015 10:47:27 +0100 |
To: | bug-Moops [...] rt.cpan.org |
From: | Sven Schober <sven.schober [...] uni-ulm.de> |
Consider this minimal example:
#!/usr/bin/env perl
use strict;
use warnings;
use Moops;
role rA {
#method mA {}
}
role rB {
requires 'mA';
}
class cA
with rB, rA {
method m {
warn "m()";
}
}
cA->new()->m();
Trying to compile/run this yields:
$ perl opaque-error-msg.pl
Execution of opaque-error-msg.pl aborted due to compilation errors.
And nothing more. Is there a way to get more feedback on what is going wrong?
I am using Moops 0.034 and Perl 5.18.2. Please let me know if you need more information to reproduce this.