From 61b742169ef5342fa9e52be035ad9b68b98faee8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Jul 2013 12:49:25 -0400 Subject: better error message here --- XS.xs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XS.xs b/XS.xs index 2795b81..1a1be34 100644 --- a/XS.xs +++ b/XS.xs @@ -383,7 +383,8 @@ static void _expand_glob(SV *self, SV *varname) if (entry = hv_fetch_ent(namespace, varname, 0, 0)) { glob = (GV*)HeVAL(entry); if (isGV(glob)) { - croak("_expand_glob called on stash slot with expanded glob"); + croak("_expand_glob called on stash slot with expanded glob: %"SVf, + varname); } else { SvREFCNT_inc(glob); -- cgit v1.2.3-54-g00ecf