From: Brandon Black Date: Sun, 19 Feb 2006 21:42:02 +0000 (+0000) Subject: debug message fix for external class layers X-Git-Tag: 0.03000~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=40dd288cfb922b824d93704b837287db3ffc695c;p=dbsrgits%2FDBIx-Class-Schema-Loader.git debug message fix for external class layers --- diff --git a/lib/DBIx/Class/Schema/Loader/Generic.pm b/lib/DBIx/Class/Schema/Loader/Generic.pm index 9a4533f..52804fb 100644 --- a/lib/DBIx/Class/Schema/Loader/Generic.pm +++ b/lib/DBIx/Class/Schema/Loader/Generic.pm @@ -402,9 +402,10 @@ sub _load_classes { croak "Failed to load external class definition" . "for '$table_class': $@"; } - - warn qq/# Loaded external class definition for '$table_class'\n/ - if $self->debug; + elsif(!$@) { + warn qq/# Loaded external class definition for '$table_class'\n/ + if $self->debug; + } $schema->register_class($table_moniker, $table_class); $self->classes->{$lc_tblname} = $table_class;