Improve error messages
[gitmo/Mouse.git] / 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