use the same error message as the pp version
Jesse Luehrs [Tue, 6 Sep 2011 01:55:08 +0000 (20:55 -0500)]
XS.xs

diff --git a/XS.xs b/XS.xs
index 60775b7..58c76b9 100644 (file)
--- a/XS.xs
+++ b/XS.xs
@@ -384,7 +384,7 @@ new(class, package_name)
     HV *instance;
   CODE:
     if (!SvPOK(package_name))
-        croak("The constructor argument must be the name of a package");
+        croak("Package::Stash->new must be passed the name of the package to access");
 
     instance = newHV();