Runs halfway on Mono. Added some debug code.

This commit is contained in:
Rick Falkvinge
2014-09-08 17:52:54 +00:00
parent bdaa0d7f20
commit 8407457576
+11
View File
@@ -370,6 +370,9 @@ public partial class Pages_v5_Init_Default : System.Web.UI.Page
_initMessage = "Loading schema from Swarmops servers; creating tables and procs...";
Thread.Sleep(100);
try
{
// Get the schema and initialize the database structures. Requires ADMIN access to database.
Swarmops.Logic.Support.DatabaseMaintenance.FirstInitialization();
@@ -604,6 +607,14 @@ public partial class Pages_v5_Init_Default : System.Web.UI.Page
_initProgress = 100;
_initMessage = "Complete.";
}
catch (Exception failedException)
{
// Use initMessage to push info about what went wrong to the user
_initMessage = failedException.ToString();
}
Thread.Sleep(1000); // give some time for static var to stick and web interface to react before killing thread
}