Never use die in generate code when throwing an error.
authorDave Rolsky <autarch@urth.org>
Fri, 17 Sep 2010 20:55:36 +0000 (15:55 -0500)
committerJesse Luehrs <doy@tozt.net>
Mon, 27 Sep 2010 00:41:22 +0000 (19:41 -0500)
commite3181911a75bfb896df9ec013142348b1646acdf
treec7863e5f2635e6312ee63d02e42a904c8b9c74fa
parent04bcce6a8b5ccd5933afe826900941805d3db685
Never use die in generate code when throwing an error.

The meta error throwing makes a more verbose message, but the stack trace is
much more useful than "at generated method x"

Improve error messages from generated methods.
lib/Moose/Meta/Method/Accessor/Native/Array.pm
lib/Moose/Meta/Method/Accessor/Native/Array/first.pm
lib/Moose/Meta/Method/Accessor/Native/Array/grep.pm
lib/Moose/Meta/Method/Accessor/Native/Array/join.pm
lib/Moose/Meta/Method/Accessor/Native/Array/map.pm
lib/Moose/Meta/Method/Accessor/Native/Array/natatime.pm
lib/Moose/Meta/Method/Accessor/Native/Array/reduce.pm
lib/Moose/Meta/Method/Accessor/Native/Array/sort.pm
lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
lib/Moose/Meta/Method/Accessor/Native/Array/splice.pm
t/070_native_traits/202_trait_array.t