Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2013-01-25 19:27:27 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2013-01-25 19:30:28 +0400
commit09b873226add99fb7515ea14287f55b1918dccbc (patch)
tree4af6ccad5e348711552dee00d59a1adb7bd0bbb2
parentcd448231ab20fe8098efdf738afa472883a0922c (diff)
[macdoc] Log individual exceptions occuring when creating indexes
-rw-r--r--IndexUpdateManager.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/IndexUpdateManager.cs b/IndexUpdateManager.cs
index 190b0bf..18971e8 100644
--- a/IndexUpdateManager.cs
+++ b/IndexUpdateManager.cs
@@ -91,8 +91,16 @@ namespace macdoc
public void PerformSearchIndexCreation ()
{
FireSearchIndexCreationEvent (true);
- RootTree.MakeSearchIndex ();
- RootTree.MakeIndex ();
+ try {
+ RootTree.MakeSearchIndex ();
+ } catch (Exception e) {
+ Logger.LogError ("Error making search index", e);
+ }
+ try {
+ RootTree.MakeIndex ();
+ } catch (Exception e) {
+ Logger.LogError ("Error making normal index", e);
+ }
IsFresh = true;
FireSearchIndexCreationEvent (false);
if (md5sums != null)