From: Fuji, Goro Date: Tue, 18 May 2010 07:12:42 +0000 (+0900) Subject: Improve error messages X-Git-Tag: 0.59~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef53a04ba00955c7bf14868cf7b93bc47fec2bbf;p=gitmo%2FMouse.git Improve error messages --- diff --git a/xs-src/MouseAccessor.xs b/xs-src/MouseAccessor.xs index 27be7b9..7fc55b6 100644 --- a/xs-src/MouseAccessor.xs +++ b/xs-src/MouseAccessor.xs @@ -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