invite: add better error handling

This commit is contained in:
Hylke Bons 2012-12-01 20:34:36 +00:00
parent c538efe885
commit 28fe89e4c5

View file

@ -70,12 +70,12 @@ namespace SparkleShare {
node = xml_document.SelectSingleNode ("/sparkleshare/invite/fingerprint/text()");
if (node != null) { fingerprint = node.Value; }
Initialize (address, remote_path, accept_url, announcements_url, fingerprint);
} catch (XmlException e) {
SparkleLogger.LogInfo ("Invite", "Invalid XML: " + e.Message);
SparkleLogger.LogInfo ("Invite", "Error parsing XML", e);
return;
}
Initialize (address, remote_path, accept_url, announcements_url, fingerprint);
}