diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-03-09 20:29:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-03-09 20:29:02 +0000 |
commit | ebe643b992508010c797fcd5c6ecf4d399139555 (patch) | |
tree | 09ca836b628fbef83bad97124607e5af6b466dea /op.c | |
parent | a8819417e80aa9d32c750ac973516c321adba4cd (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |