summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-07-01 12:42:03 +0000
committerivan <ivan>2004-07-01 12:42:03 +0000
commit6e263ad06d202a6221bd2d12b406dce67914be24 (patch)
tree372b0d3c8442c187018f3bcb867febc67c1eb165 /FS
parent197e1640b4d44a4769fccc947d0f1e128fbde3a8 (diff)
show a full stack backtrace if we wind up in the hash method with an empty Hash attribute, wtf?
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Record.pm2
1 files changed, 2 insertions, 0 deletions
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'} };
}