summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-06-15 10:59:16 +0000
committerivan <ivan>2004-06-15 10:59:16 +0000
commitf11341c6ca588f1ff5e46a857540e88d49d7647a (patch)
tree8707bae0266525a169588f15ff117b06f9c7645a /FS
parent402ac7d54021caf6797efc47d33983be51eef049 (diff)
add stack backtrace to fatal problems in virtual field check
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Record.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index dd87e5a9a..946e39dd5 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -986,7 +986,14 @@ sub check {
for ($self->getfield($field)) {
# See notes on check_block in FS::part_virtual_field.
eval $self->pvf($field)->check_block;
- return $@ if $@;
+ if ( $@ ) {
+ #this is bad, probably want to follow the stack backtrace up and see
+ #wtf happened
+ my $err = "Fatal error checking $field for $self";
+ cluck "$err: $@";
+ return "$err (see log for backtrace): $@";
+
+ }
$self->setfield($field, $_);
}
}