X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=xs-src%2FMouseAttribute.xs;h=617a99a6cbd17e9119c48d5a9778a96c5aba50bb;hp=8ea3a060faa36d385ae6ef0ecaea6219c43ca504;hb=d06d926635763fa5687c429b5ad39938c564fbed;hpb=d67f600df9deb0deb95616f617c1aca3fd78a2e3 diff --git a/xs-src/MouseAttribute.xs b/xs-src/MouseAttribute.xs index 8ea3a06..617a99a 100644 --- a/xs-src/MouseAttribute.xs +++ b/xs-src/MouseAttribute.xs @@ -280,10 +280,7 @@ CODE: /* taken from Class::MOP::Attribute::new */ - if(!SvOK(name)){ - mouse_throw_error(klass, NULL, - "You must provide a name for the attribute"); - } + must_defined(name, "an attribute name"); svp = hv_fetchs(args, "init_arg", FALSE); if(!svp){