From: Wallace Reis Date: Mon, 7 Sep 2009 13:31:38 +0000 (+0000) Subject: improved warn for Storable hooks in ResultSourceHandle X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e8205a8734fc799a37c5900154f76eaecac149f;p=dbsrgits%2FDBIx-Class-Historic.git improved warn for Storable hooks in ResultSourceHandle --- diff --git a/lib/DBIx/Class/ResultSourceHandle.pm b/lib/DBIx/Class/ResultSourceHandle.pm index d7d0190..33204df 100644 --- a/lib/DBIx/Class/ResultSourceHandle.pm +++ b/lib/DBIx/Class/ResultSourceHandle.pm @@ -106,7 +106,8 @@ sub STORABLE_thaw { $self->{schema} = $rs->schema if $rs; } - carp "Unable to restore schema" unless $self->{schema}; + carp "Unable to restore schema. Look at 'freeze' and 'thaw' methods in DBIx::Class::Schema." + unless $self->{schema}; } =head1 AUTHOR