summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2009-10-26 21:52:05 +0100
committerYves Orton <demerphq@gmail.com>2009-10-26 23:12:50 +0100
commit9134ea20ecf6c7a898519ea43ac463bc4da08840 (patch)
treeeac9e42206a5f4b65de593c3eae35518e3ec5feb /pp_hot.c
parent2699d6345b651c48a820507d6287ddca1f5b2ee4 (diff)
downloadperl-9134ea20ecf6c7a898519ea43ac463bc4da08840.tar.gz
add an elipses to string/ref warnings when str longer than 32 chars
Wasted a few minutes more than necessary trying to work out why the string was truncated when in fact it was the error message that was truncating the string.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 16992d47b7..0730aff1a7 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2700,7 +2700,7 @@ PP(pp_entersub)
if (!sym)
DIE(aTHX_ PL_no_usym, "a subroutine");
if (PL_op->op_private & HINT_STRICT_REFS)
- DIE(aTHX_ PL_no_symref, sym, "a subroutine");
+ DIE(aTHX_ PL_no_symref, sym, len>32 ? "..." : "", "a subroutine");
cv = get_cvn_flags(sym, len, GV_ADD|SvUTF8(sv));
break;
}