Commit 5cbb2db9 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Generate a user error instead of a tberror when the DB is unavailable

on initial page load; mysqld has gone catatonic and we find out about
it many other ways, so lets not add more email to the flood.
parent 9db1511a
......@@ -2109,7 +2109,8 @@ while ($maxtries) {
if (! $DBlinkid) {
TBERROR("Could not connect to mysqld after several attempts!", 1);
USERERROR("Temporary resource error; ".
"please try again in a few minutes", 1);
if (!mysql_select_db($TBDBNAME)) {
TBERROR("Could not select DB after connecting!", 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment