mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 19:59:14 +00:00
simplify default global config, expand sanity_check messages
This commit is contained in:
@@ -22,7 +22,7 @@ function db_connect($host, $user, $pass, $db) {
|
||||
$link = pg_connect($string);
|
||||
|
||||
if (!$link) {
|
||||
die("Connection failed: " . pg_last_error($link));
|
||||
die("Unable to connect to database (as $user to $host, database $db):" . pg_last_error());
|
||||
}
|
||||
|
||||
return $link;
|
||||
@@ -36,7 +36,7 @@ function db_connect($host, $user, $pass, $db) {
|
||||
}
|
||||
return $link;
|
||||
} else {
|
||||
die("Connection failed: " . mysql_error($link));
|
||||
die("Unable to connect to database (as $user to $host, database $db): " . mysql_error());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user