Diff

plugins/mod_storage_sql.lua @ 4297:3421dfaa8188 0.8.1

mod_storage_sql: Log error when failing to update MySQL schema
author Matthew Wild <mwild1@gmail.com>
date Fri, 03 Jun 2011 05:34:22 +0100
parent 4285:c806a599224a
child 4309:7ad81d81f5ec
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Fri Jun 03 00:57:25 2011 +0100
+++ b/plugins/mod_storage_sql.lua	Fri Jun 03 05:34:22 2011 +0100
@@ -108,6 +108,8 @@
 					end
 				end
 				repeat until not stmt:fetch();
+			else
+				module:log("error", "Failed to upgrade database schema, please see http://prosody.im/doc/mysql for help");
 			end
 		end
 	end