summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-15 12:49:25 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-15 12:49:25 -0400
commit61b742169ef5342fa9e52be035ad9b68b98faee8 (patch)
tree720704c7b73ec708329fedbb4384f5d8a61f23fc
parent415f27aaf8bbf75d2831a040f4b8f17ce54cb62c (diff)
downloadpackage-stash-xs-61b742169ef5342fa9e52be035ad9b68b98faee8.tar.gz
package-stash-xs-61b742169ef5342fa9e52be035ad9b68b98faee8.zip
better error message here
-rw-r--r--XS.xs3
1 files changed, 2 insertions, 1 deletions
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);