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-Tag: v0.08122~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=854929cb5def53f094d9dd7e17a093838121e665;hp=613a5b03f6f9c15c3ce35ed8eee964f4d14ce22c;p=dbsrgits%2FDBIx-Class.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'." + ); } }