summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-eftca-download
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2019-01-08 00:01:21 -0500
committerMitch Jackson <mitch@freeside.biz>2019-01-08 00:01:21 -0500
commite61149f7135b750b2b6ff6ee94f461460163ddea (patch)
tree1e92d72fb57965731b473262b626b179085ad8d1 /FS/bin/freeside-eftca-download
parentca5b439d4e874bec01a346f53f2bd9e50d612151 (diff)
RT# 81701 Add system log lines for EFT Canada upload/download
Diffstat (limited to 'FS/bin/freeside-eftca-download')
-rwxr-xr-xFS/bin/freeside-eftca-download5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/bin/freeside-eftca-download b/FS/bin/freeside-eftca-download
index caf9e0e70..56d82c7f5 100755
--- a/FS/bin/freeside-eftca-download
+++ b/FS/bin/freeside-eftca-download
@@ -57,7 +57,10 @@ my $conf = new FS::Conf;
my @agents;
if ( $conf->exists('batch-spoolagent') ) {
- @agents = qsearch('agent', { 'disabled' => '' });
+ local $@;
+ eval { @agents = qsearch('agent', { 'disabled' => '' }); };
+ log_error_and_die("Fatal database error: $@")
+ if $@;
} else {
@agents = (1);
}