summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-07-01 12:42:04 +0000
committerivan <ivan>2004-07-01 12:42:04 +0000
commit82c87cf80df0b40927a2afdde772da2369311e43 (patch)
tree2adfaa6731ab3c02ff29fcb24d1fb5e048df6381 /FS
parente7227ac94d51a4830c0908174bdf8468deaac176 (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 acf2e82a2..b620c0114 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -462,6 +462,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'} };
}