Subject: | Reason for load failure not given |
If TAP::Formatter::Console cannot be loaded for whatever reason, then I get this error when
trying to run perl’s tests through Test::Harness:
Can't load TAP::Formatter::Console at harness line 231.
The piece of code in ‘harness’ that triggers this error is:
my $h = TAP::Harness->new({
rules => $rules,
color => $color,
jobs => $jobs,
verbosity => $Verbose,
exec => sub {
my ($harness, $test) = @_;
my $options = $options{$test};
if (!defined $options) {
$options = $options{$test} = _scan_test($test, $type);
}
return [ split ' ', _cmd($options, $type) ];
},
});
So TAP::Harness->new, or something it calls, is dying. But it doesn’t tell me why the
formatter cannot load.
Could this be changed to include $@ in its output as well? After all, dying with a separate
message would cause $@ to be clobbered with the new message.