summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-31 06:23:12 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-31 06:23:12 +0000
commit59e7186f90f13f9b1945035df4ce5a5117d604dc (patch)
tree0d97cb2b5b87e023f44c46034b8bd3b6bf09fddd /pp_hot.c
parent40986f42b4dca4ed841e1a7f7d848e9b5f199680 (diff)
downloadperl-59e7186f90f13f9b1945035df4ce5a5117d604dc.tar.gz
Fix the error message "Can't call method "DOES" on unblessed
reference". p4raw-id: //depot/perl@30806
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 83ed6135cc..2f2876bac9 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -3024,6 +3024,7 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
&& SvOBJECT(ob))))
{
Perl_croak(aTHX_ "Can't call method \"%s\" on unblessed reference",
+ (SvSCREAM(meth) && strEQ(name,"isa")) ? "DOES" :
name);
}