mod_storage_sql: Log error when failing to update MySQL schema
authorMatthew Wild <mwild1@gmail.com>
Fri, 3 Jun 2011 04:34:22 +0000 (05:34 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 3 Jun 2011 04:34:22 +0000 (05:34 +0100)
plugins/mod_storage_sql.lua

index dd1487044113d11ae965759f1a9192d58a7f265a..57331ac0a7c40895bd63990c5b07f1754b963bf7 100644 (file)
@@ -108,6 +108,8 @@ local function create_table()
                                        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