From: Mike Guy Date: Tue, 12 Mar 2002 16:04:23 +0000 (+0000) Subject: Disambiguate "Can't locate" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7530c94cc4e2a136116a8545073135072061ee62;p=p5sagit%2Fp5-mst-13.2.git Disambiguate "Can't locate" Message-Id: p4raw-id: //depot/perl@15200 --- diff --git a/lib/AutoSplit.t b/lib/AutoSplit.t index 7cc680e..3e92e4b 100644 --- a/lib/AutoSplit.t +++ b/lib/AutoSplit.t @@ -336,7 +336,7 @@ AutoSplitting *INC**PATHSEP**MOD*.pm (*DIR**PATHSEP**MOD*) *DIR*/*MOD*/flying_pig.al ## Tests is (&*MOD*::skeleton, "bones", "skeleton"); -eval {&*MOD*::gonner}; ok ($@ =~ m!^Can't locate auto/*MOD*/gonner.al in \@INC!, "Check &*MOD*::gonner is now a gonner") or print "# \$\@='$@'\n"; +eval {&*MOD*::gonner}; ok ($@ =~ m!^Can't locate file auto/*MOD*/gonner.al in \@INC!, "Check &*MOD*::gonner is now a gonner") or print "# \$\@='$@'\n"; ## Sleep 4 ## SameAgain @@ -408,4 +408,4 @@ AutoSplitting *INC**PATHSEP**MOD*.pm (*DIR**PATHSEP**MOD*) *DIR*/*MOD*/wraith.al ## Tests is (&*MOD*::wraith, 9); -eval {&*MOD*::flying_pig}; ok ($@ =~ m!^Can't locate auto/*MOD*/flying_pig.al in \@INC!, "There are no flying pigs") or print "# \$\@='$@'\n"; +eval {&*MOD*::flying_pig}; ok ($@ =~ m!^Can't locate file auto/*MOD*/flying_pig.al in \@INC!, "There are no flying pigs") or print "# \$\@='$@'\n"; diff --git a/lib/Test/Simple/t/fail-more.t b/lib/Test/Simple/t/fail-more.t index 29f8eb2..3e3f6b3 100644 --- a/lib/Test/Simple/t/fail-more.t +++ b/lib/Test/Simple/t/fail-more.t @@ -207,10 +207,10 @@ ERR my $more_err_re = < (or C, or C) a file that couldn't be found. Perl looks for the file in all the locations mentioned in @INC, diff --git a/pp_ctl.c b/pp_ctl.c index 11b3613..9c4479b 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3155,7 +3155,7 @@ PP(pp_require) SvREFCNT_dec(dirmsgsv); msgstr = SvPV_nolen(msg); } - DIE(aTHX_ "Can't locate %s", msgstr); + DIE(aTHX_ "Can't locate file %s", msgstr); } RETPUSHUNDEF; diff --git a/t/op/override.t b/t/op/override.t index 1a4e5e0..e9e62a0 100755 --- a/t/op/override.t +++ b/t/op/override.t @@ -67,7 +67,7 @@ print "ok 10\n"; local(*CORE::GLOBAL::require); $r = ''; eval "require NoNeXiSt;"; - print "not " if $r or $@ !~ /^Can't locate NoNeXiSt/i; + print "not " if $r or $@ !~ /^Can't locate file NoNeXiSt/i; print "ok 11\n"; }