summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-03-09 20:29:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-03-09 20:29:02 +0000
commitebe643b992508010c797fcd5c6ecf4d399139555 (patch)
tree09ca836b628fbef83bad97124607e5af6b466dea /op.c
parenta8819417e80aa9d32c750ac973516c321adba4cd (diff)
downloadperl-ebe643b992508010c797fcd5c6ecf4d399139555.tar.gz
Improve the "Prototype mismatch" error message when
the redefined subroutine didn't have any prototype. p4raw-id: //depot/perl@22474
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index ca24417157..b695a63553 100644
--- a/op.c
+++ b/op.c
@@ -3911,6 +3911,8 @@ Perl_cv_ckproto(pTHX_ CV *cv, GV *gv, char *p)
Perl_sv_catpvf(aTHX_ msg, " sub %"SVf, name);
if (SvPOK(cv))
Perl_sv_catpvf(aTHX_ msg, " (%"SVf")", (SV *)cv);
+ else
+ Perl_sv_catpvf(aTHX_ msg, ": none");
sv_catpv(msg, " vs ");
if (p)
Perl_sv_catpvf(aTHX_ msg, "(%s)", p);