From: Shawn M Moore Date: Sat, 12 Sep 2009 06:01:47 +0000 (+0900) Subject: Quote the "also" in the error message for clarity X-Git-Tag: 0.90~42 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b822369d355d7a348a69ac2fcfba02ad9903a39a;p=gitmo%2FMoose.git Quote the "also" in the error message for clarity --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index cc95c5c..07c31d8 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -104,7 +104,7 @@ sub build_import_methods { for my $package (@also) { - die "Circular reference in also parameter to Moose::Exporter between $exporting_package and $package" + die "Circular reference in 'also' parameter to Moose::Exporter between $exporting_package and $package" if $seen->{$package}; $seen->{$package} = 1; diff --git a/t/050_metaclasses/012_moose_exporter.t b/t/050_metaclasses/012_moose_exporter.t index 8ac6ca3..93ec1bb 100644 --- a/t/050_metaclasses/012_moose_exporter.t +++ b/t/050_metaclasses/012_moose_exporter.t @@ -210,7 +210,7 @@ BEGIN { ::like( $@, - qr/\QCircular reference in also parameter to Moose::Exporter between MooseX::CircularAlso and MooseX::CircularAlso/, + qr/\QCircular reference in 'also' parameter to Moose::Exporter between MooseX::CircularAlso and MooseX::CircularAlso/, 'got the expected error from circular reference in also' ); }