Fix warning
Peter Rabbitson [Wed, 9 Sep 2009 12:16:12 +0000 (12:16 +0000)]
lib/DBIx/Class/ResultSource.pm

index 2162597..122faef 100644 (file)
@@ -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;