Debugging Mono Ajax calls III

This commit is contained in:
Rick Falkvinge
2016-09-12 21:16:27 +02:00
parent 37c20309f0
commit 4c0ec086c1
3 changed files with 17 additions and 7 deletions
+13 -3
View File
@@ -85,7 +85,7 @@ namespace Swarmops.Logic.Support
sql = client.DownloadString (fileName);
}
}
catch (Exception)
catch (Exception outerException)
{
Console.WriteLine(" trying fallback...");
@@ -99,9 +99,19 @@ namespace Swarmops.Logic.Support
sql = client.DownloadString(fileName);
}
}
catch (Exception)
catch (Exception middleException)
{
OutboundComm.CreateNotification(null, NotificationResource.System_DatabaseUpgradeFailed);
try
{
OutboundComm.CreateNotification (null, NotificationResource.System_DatabaseUpgradeFailed);
}
catch (ArgumentException)
{
// if this happens during setup:
throw new Exception ("Failed fetching upgrade packages:\r\n" + middleException.ToString() +
"\r\n" + outerException.ToString());
}
Console.WriteLine(" FAILED! Aborting.");
return;
+1 -1
View File
@@ -351,7 +351,7 @@
<%=this.ModalMasterEditPerson.ClientID%>_open();
var personEditorData = {
personId: personId
personId: parseInt(personId) // parseInt to force passing integer over JSON
};
_master_PersonEditLoading = false;
+3 -3
View File
@@ -736,11 +736,11 @@ body.rtl .entryLabelsAdmin {
-webkit-border-radius: 2px;
border-radius: 2px;
line-height: 30px;
float:left;
float:right;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
padding-right: 10px;
padding-left: 5px;
padding-right: 5px;
margin-top: 5px;
margin-bottom: 5px;