summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-16 14:05:28 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-16 14:05:28 -0800
commit4040665ab6aa79d4f0e579522c09d3f2832279d5 (patch)
tree812246b9ae8b4181986ca512541c6906a5863f33 /sv.c
parent6903afa2b8206925f8e1edd9c895a9b40b55199e (diff)
downloadperl-4040665ab6aa79d4f0e579522c09d3f2832279d5.tar.gz
perldiag: Retitle ‘Cannot copy’
Without the ‘in %s’ it covers both forms of the error message.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index cf29ffad54..dec1794d6f 100644
--- a/sv.c
+++ b/sv.c
@@ -4097,6 +4097,7 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV* sstr, const I32 flags)
} else if (dtype == SVt_PVAV || dtype == SVt_PVHV) {
const char * const type = sv_reftype(dstr,0);
if (PL_op)
+ /* diag_listed_as: Cannot copy to %s */
Perl_croak(aTHX_ "Cannot copy to %s in %s", type, OP_DESC(PL_op));
else
Perl_croak(aTHX_ "Cannot copy to %s", type);