Improve error messages
Fuji, Goro [Tue, 18 May 2010 07:12:42 +0000 (16:12 +0900)]
xs-src/MouseAccessor.xs

index 27be7b9..7fc55b6 100644 (file)
@@ -2,7 +2,7 @@
 
 #define CHECK_INSTANCE(instance) STMT_START{                           \
         if(!(SvROK(instance) && SvTYPE(SvRV(instance)) == SVt_PVHV)){  \
-            croak("Invalid object instance");                          \
+            croak("Invalid object instance: '%"SVf"'", instance);      \
         }                                                              \
     } STMT_END