summaryrefslogtreecommitdiff
path: root/FS/FS/svc_Common.pm
diff options
context:
space:
mode:
authorivan <ivan>2012-01-15 05:31:59 +0000
committerivan <ivan>2012-01-15 05:31:59 +0000
commit36d4c11cb8adf66c982c6f4c75b95fa4e6addd0b (patch)
treeef4c3fafa586dd1575c0b75f52b34029fa002b04 /FS/FS/svc_Common.pm
parenta704467836221b68814deadbb1cb99a2af815c93 (diff)
display spam status on account view, RT#15987
Diffstat (limited to 'FS/FS/svc_Common.pm')
-rw-r--r--FS/FS/svc_Common.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 9137c3f..499afe0 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -996,9 +996,8 @@ sub export_getsettings {
my %defaults = ();
my $error = $self->export('getsettings', \%settings, \%defaults);
if ( $error ) {
- #XXX bubble this up better
warn "error running export_getsetings: $error";
- return ( {}, {} );
+ return ( { 'error' => $error }, {} );
}
( \%settings, \%defaults );
}
@@ -1016,9 +1015,8 @@ sub export_getstatus {
my %hash = ();
my $error = $self->export('getstatus', \$html, \%hash);
if ( $error ) {
- #XXX bubble this up better
warn "error running export_getstatus: $error";
- return ( '', {} );
+ return ( '', { 'error' => $error } );
}
( $html, \%hash );
}