From 09e8bdfd18f81e432c5f392e398b8c8088168721 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Dec 2011 19:20:26 +0400 Subject: simplify default global config, expand sanity_check messages --- include/db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/db.php') diff --git a/include/db.php b/include/db.php index 1401c089b..7b2bd2a77 100644 --- a/include/db.php +++ b/include/db.php @@ -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()); } } } -- cgit v1.2.3