From: Peter Rabbitson Date: Wed, 9 Sep 2009 12:16:12 +0000 (+0000) Subject: Fix warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72abfb1c110283fcdeeec49a7604e4f1800a58c0;p=dbsrgits%2FDBIx-Class-Historic.git Fix warning --- diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 2162597..122faef 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -1323,9 +1323,9 @@ sub _resolve_condition { unless ($for->has_column_loaded($v)) { if ($for->in_storage) { $self->throw_exception( - "Column ${v} not loaded or not passed to new() prior to insert()" - ." on ${for} trying to resolve relationship (maybe you forgot " - ."to call ->discard_changes to get defaults from the db)" + "Unable to resolve relationship to ${for}: column ${v} not " + . "loaded from storage (or not passed to new() prior to insert()). " + . "Maybe you forgot to call ->discard_changes to get defaults from the db." ); } return $UNRESOLVABLE_CONDITION;