From da14500268017fc7c6020452eb8daf7ad045cc1c Mon Sep 17 00:00:00 2001 From: Igor Golubkov Date: Mon, 22 Jul 2013 09:19:19 +0400 Subject: [PATCH] Add error reporting on failed DB connection. --- code/world.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/world.dm b/code/world.dm index d72ec0c02a..502d25d190 100644 --- a/code/world.dm +++ b/code/world.dm @@ -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 .