X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSource.pm;h=aaa31a339a6048d2b063d1ef5036e567a7683f86;hb=ad630f4b838ba86747733a3b75a5936b52a4d217;hp=4dc8e31ba5131747fcd4e06a8fc1385625aaf8c6;hpb=971beb942408fe56c2b5afcea159d9ab4db14a27;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 4dc8e31..aaa31a3 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -1334,13 +1334,13 @@ sub _resolve_condition { unless ($for->has_column_loaded($v)) { if ($for->in_storage) { $self->throw_exception(sprintf - "Unable to resolve relationship '%s' from '%s': column '%s' of object %s " - . '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.', + "Unable to resolve relationship '%s' from object %s: column '%s' not " + . 'loaded from storage (or not passed to new() prior to insert()). You ' + . 'probably need to call ->discard_changes to get the server-side defaults ' + . 'from the database.', $as, - $for->result_source->source_name, - $v, $for, + $v, ); } return $UNRESOLVABLE_CONDITION;