From: Peter Rabbitson Date: Thu, 3 Jun 2010 09:43:58 +0000 (+0000) Subject: Better exception before actually fixing this error case altogether X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=854929cb5def53f094d9dd7e17a093838121e665;p=dbsrgits%2FDBIx-Class-Historic.git Better exception before actually fixing this error case altogether --- diff --git a/lib/DBIx/Class/Row.pm b/lib/DBIx/Class/Row.pm index da50a6b..7ed3951 100644 --- a/lib/DBIx/Class/Row.pm +++ b/lib/DBIx/Class/Row.pm @@ -135,7 +135,10 @@ sub __new_related_find_or_new_helper { } else { my $us = $rsrc->source_name; - $self->throw_exception ("'$us' neither depends nor is depended on by '$relname', something is wrong..."); + $self->throw_exception ( + "Unable to determine relationship '$relname' direction from '$us', " + . "possibly due to a missing reverse-relationship on '$relname' to '$us'." + ); } }