From: ivan Date: Thu, 1 Jul 2004 12:42:03 +0000 (+0000) Subject: show a full stack backtrace if we wind up in the hash method with an empty Hash attri... X-Git-Tag: BEFORE_FINAL_MASONIZE~1000 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6e263ad06d202a6221bd2d12b406dce67914be24 show a full stack backtrace if we wind up in the hash method with an empty Hash attribute, wtf? --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 946e39dd5..881b8ddb5 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -537,6 +537,8 @@ To make a distinct duplicate of an FS::Record object, you can do: sub hash { my($self) = @_; + confess $self. ' -> hash: Hash attribute is undefined' + unless defined($self->{'Hash'}); %{ $self->{'Hash'} }; }