This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
require die msg: only mention @INC if used
authorDavid Mitchell <davem@iabyn.com>
Thu, 13 Apr 2017 11:23:59 +0000 (12:23 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 18 Apr 2017 11:58:32 +0000 (12:58 +0100)
commit4b62894a4418bf61f306acb452472eb9fe79974e
tree85c9554dbe07d366b32540c97f60c7a49e76a1d2
parent13e8e86634c636913120ec966070c3f59eedcb29
require die msg: only mention @INC if used

RT #131098

5.8.0 introduced a change which as an inadvertent side-effect caused
this @INC-related require croak message:

    Can't locate foo in @INC (@INC contains: ...) at ...

to be emitted even when foo is a non-searchable pathname (like /foo or
./foo) and @INC isn't used.

This commit reverts the error message in these cases to be the simple

    Can't locate foo at ...
pp_ctl.c
t/op/require_errors.t