From: Shawn M Moore Date: Mon, 18 May 2009 06:12:04 +0000 (-0400) Subject: When your ->meta method does not return a Moose::Meta::Class, the error message gave... X-Git-Tag: 0.80~82 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7e9a4d88d6458bd517a60f4cd5a33ca05b7b69f;p=gitmo%2FMoose.git When your ->meta method does not return a Moose::Meta::Class, the error message gave the wrong output --- diff --git a/Changes b/Changes index 75d6a88..057cc97 100644 --- a/Changes +++ b/Changes @@ -15,6 +15,10 @@ for, noteworthy changes. - If you "also" a module that isn't loaded, the error message now acknowledges that (Sartak) + * Moose + - When your ->meta method does not return a Moose::Meta::Class, + the error message gave the wrong output (Sartak) + 0.78 Tue, May 12, 2009 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF - Merged these documents into what is now Moose::Manual::FAQ diff --git a/lib/Moose.pm b/lib/Moose.pm index 40fc9e2..e64915f 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -209,7 +209,7 @@ sub init_meta { my $method_meta = $class->meta; ( blessed($method_meta) && $method_meta->isa('Moose::Meta::Class') ) - || Moose->throw_error("$class already has a &meta function, but it does not return a Moose::Meta::Class ($meta)"); + || Moose->throw_error("$class already has a &meta function, but it does not return a Moose::Meta::Class ($method_meta)"); $meta = $method_meta; }