From: Jesse Luehrs Date: Tue, 16 Nov 2010 16:10:27 +0000 (-0600) Subject: better error message X-Git-Tag: 0.16~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f88deb66271c78217bd0b488a5ab4581d5b6794a;p=gitmo%2FPackage-Stash-XS.git better error message --- diff --git a/XS.xs b/XS.xs index 98648ca..db34488 100644 --- a/XS.xs +++ b/XS.xs @@ -153,7 +153,7 @@ vartype_t string_to_vartype(char *vartype) return VAR_IO; } else { - croak("Type must be one of 'SCALAR', 'ARRAY', 'HASH', 'CODE', or 'IO'"); + croak("Type must be one of 'SCALAR', 'ARRAY', 'HASH', 'CODE', or 'IO', not '%s'", vartype); } }