diff options
-rw-r--r-- | FS/FS/Upgrade.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index e4561e72f..37167a8af 100644 --- 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'). ': '; |