diff options
author | Yves Orton <demerphq@gmail.com> | 2009-10-26 21:52:05 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2009-10-26 23:12:50 +0100 |
commit | 9134ea20ecf6c7a898519ea43ac463bc4da08840 (patch) | |
tree | eac9e42206a5f4b65de593c3eae35518e3ec5feb /pp_hot.c | |
parent | 2699d6345b651c48a820507d6287ddca1f5b2ee4 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |