From: Ash Berlin Date: Tue, 9 Jun 2009 13:07:30 +0000 (+0000) Subject: Make IC::DT extra warning state the column name too X-Git-Tag: v0.08106~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c9d0c63a0bc370d25f7995ecf8f7a1c380e7963;p=dbsrgits%2FDBIx-Class.git Make IC::DT extra warning state the column name too --- diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index 54e66f5..d006e55 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -116,14 +116,14 @@ sub register_column { my $timezone; if ( defined $info->{extra}{timezone} ) { carp "Putting timezone into extra => { timezone => '...' } has been deprecated, ". - "please put it directly into the columns definition."; + "please put it directly into the '$column' column definition."; $timezone = $info->{extra}{timezone}; } my $locale; if ( defined $info->{extra}{locale} ) { carp "Putting locale into extra => { locale => '...' } has been deprecated, ". - "please put it directly into the columns definition."; + "please put it directly into the '$column' column definition."; $locale = $info->{extra}{locale}; } @@ -139,7 +139,7 @@ sub register_column { if (defined $info->{extra}{floating_tz_ok}) { carp "Putting floating_tz_ok into extra => { floating_tz_ok => 1 } has been deprecated, ". - "please put it directly into the columns definition."; + "please put it directly into the '$column' column definition."; $info{floating_tz_ok} = $info->{extra}{floating_tz_ok}; }