Add error reporting on failed DB connection.

This commit is contained in:
Igor Golubkov
2013-07-22 09:19:19 +04:00
parent 2288dc8abf
commit da14500268

View File

@@ -308,6 +308,7 @@ proc/setup_database_connection()
failed_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
else
failed_db_connections++ //If it failed, increase the failed connections counter.
world.log << dbcon.ErrorMsg()
return .
@@ -345,6 +346,7 @@ proc/setup_old_database_connection()
failed_old_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
else
failed_old_db_connections++ //If it failed, increase the failed connections counter.
world.log << dbcon.ErrorMsg()
return .