diff options
author | Michael G. Schwern <schwern@pobox.com> | 1999-10-03 09:16:47 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-03 17:21:01 +0000 |
commit | ab612ae322acd4d9f3012a98d8fef7a541ccdeca (patch) | |
tree | f850f58b446c316d1b64c6ca38d663acc331105e /av.c | |
parent | c99cdc197163c0d3b8c3bd0e4bb832623e79c9d2 (diff) | |
download | perl-ab612ae322acd4d9f3012a98d8fef7a541ccdeca.tar.gz |
(Replaced by #4297.)
To: perl5-porters@perl.org
Subject: [PATCH av.c, perldiag.pod] Added field name to "No such array field"
Message-ID: <19991003131647.A2816@blackrider>
plus changed the error message to say "No such pseudo-hash field"
as discussed in the above mail message.
p4raw-id: //depot/cfgperl@4296
Diffstat (limited to 'av.c')
-rw-r--r-- | av.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -630,10 +630,11 @@ Perl_avhv_fetch_ent(pTHX_ AV *av, SV *keysv, I32 lval, U32 hash) SV **indsvp; HV *keys = avhv_keys(av); HE *he; - + STRLEN n_a; + he = hv_fetch_ent(keys, keysv, FALSE, hash); if (!he) - Perl_croak(aTHX_ "No such array field"); + Perl_croak(aTHX_ "No such pseudo-hash field '%s'", SvPV(keysv,n_a)); return av_fetch(av, avhv_index_sv(HeVAL(he)), lval); } |