In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/8af56b9d4cb926792c8f72b634303126a5b1d860?hp=88938aa807eec74bf613701c9b6e851df9859b2a>

- Log -----------------------------------------------------------------
commit 8af56b9d4cb926792c8f72b634303126a5b1d860
Author: Father Chrysostomos <[email protected]>
Date:   Fri Sep 19 08:41:00 2014 -0700

    perldiag: Reunite ‘perhaps you forgot to load’
    
    to the other part of the message.  diagnostics.pm won’t find it otherwise:
    
    $ perl -Mdiagnostics -we '"foo"->bar'
    Can't locate object method "bar" via package "foo" (perhaps you forgot to 
load
        "foo"?) at -e line 1 (#1)
    Uncaught exception from user code:
        Can't locate object method "bar" via package "foo" (perhaps you forgot 
to load "foo"?) at -e line 1.
    
    Now we have this:
    
    Can't locate object method "bar" via package "foo" (perhaps you forgot to 
load
        "foo"?) at -e line 1 (#1)
        (F) You called a method on a class that did not exist, and the method
        could not be found in UNIVERSAL.  This often means that a method
        requires a package that has not been loaded.
    
    Uncaught exception from user code:
        Can't locate object method "bar" via package "foo" (perhaps you forgot 
to load "foo"?) at -e line 1.
-----------------------------------------------------------------------

Summary of changes:
 pod/perldiag.pod | 13 +++++++------
 t/porting/diag.t |  1 -
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 064aea9..80a197c 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -957,6 +957,13 @@ unable to locate this library.  See L<DynaLoader>.
 functioning as a class, but that package doesn't define that particular
 method, nor does any of its base classes.  See L<perlobj>.
 
+=item Can't locate object method "%s" via package "%s" (perhaps you forgot
+to load "%s"?)
+
+(F) You called a method on a class that did not exist, and the method
+could not be found in UNIVERSAL.  This often means that a method
+requires a package that has not been loaded.
+
 =item Can't locate package %s for @%s::ISA
 
 (W syntax) The @ISA array contained the name of another package that
@@ -4221,12 +4228,6 @@ the nesting limit is exceeded.
 command-line switch.  (This output goes to STDOUT unless you've
 redirected it with select().)
 
-=item (perhaps you forgot to load "%s"?)
-
-(F) This is an educated guess made in conjunction with the message
-"Can't locate object method \"%s\" via package \"%s\"".  It often means
-that a method requires a package that has not been loaded.
-
 =item Perl folding rules are not up-to-date for 0x%X; please use the perlbug
 utility to report; in regex; marked by S<<-- HERE> in m/%s/
 
diff --git a/t/porting/diag.t b/t/porting/diag.t
index e94922b..b53dacd 100644
--- a/t/porting/diag.t
+++ b/t/porting/diag.t
@@ -484,7 +484,6 @@ Can't fix broken locale name "%s"
 Can't get short module name from a handle
 Can't load DLL `%s', possible problematic module `%s'
 Can't locate %s:   %s
-Can't locate object method "%s" via package "%s" (perhaps you forgot to load 
"%s"?)
 Can't pipe "%s": %s
 Can't set type on DOS
 Can't spawn: %s

--
Perl5 Master Repository

Reply via email to