diff options
author | Andrew Dolgov <[email protected]> | 2011-12-13 19:20:26 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-13 19:20:26 +0400 |
commit | 09e8bdfd18f81e432c5f392e398b8c8088168721 (patch) | |
tree | 341e9f4bdfb3503a8427fff40e57000e98d3ad4c /include/db.php | |
parent | a3b5394aaf793d045256f67eb6fad0616b1ff950 (diff) |
simplify default global config, expand sanity_check messages
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } } } |