projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65c9c67
)
report errors connecting to sqlradius dbs on upgrade
author
ivan
<ivan>
Tue, 15 Jul 2008 23:17:30 +0000
(23:17 +0000)
committer
ivan
<ivan>
Tue, 15 Jul 2008 23:17:30 +0000
(23:17 +0000)
FS/FS/Upgrade.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
e4561e7
..
37167a8
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-122,6
+122,12
@@
sub upgrade_sqlradius {
{ PrintError => 0, PrintWarn => 0 }
);
+ unless $dbh {
+ warn "can't connect to RADIUS database ".
+ $part_export->option('datasrc'). ": $DBI::errstr\n";
+ next;
+ }
+
my $errmsg = 'Error adding FreesideStatus to '.
$part_export->option('datasrc'). ': ';