]> lifelog.hopto.org Git - LifeLog.git/commitdiff
throw Exception don't die.
authorWill Budic <redacted>
Wed, 19 Feb 2020 21:23:27 +0000 (08:23 +1100)
committerWill Budic <redacted>
Wed, 19 Feb 2020 21:23:27 +0000 (08:23 +1100)
htdocs/cgi-bin/login_ctr.cgi

index 458979f520a68737a43007e3906d90d6388dc61d..93d30826a30af76d15726b4e469bc66a84c9253a 100755 (executable)
@@ -167,8 +167,7 @@ sub checkCreateTables {
        $today-> set_time_zone( &Settings::timezone );
     my $database = &Settings::logPath.'data_'.$alias.'_log.db';
     my $dsn= "DBI:SQLite:dbname=$database";
-    my $db = DBI->connect($dsn, $alias, $passw, { RaiseError => 1 })
-                    or LifeLogException->throw($DBI::errstri);
+    my $db = DBI->connect($dsn, $alias, $passw, { RaiseError => 1 }) or LifeLogException->throw($DBI::errstri);
     my $rv;
     my $changed = 0;
     # We live check database for available tables now only once.