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:
authorJérémie Laval <jeremie.laval@gmail.com>2012-06-26 21:40:32 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2012-06-26 21:40:32 +0400
commit876bbdaa03e2207b5e4f3cd31e07005028cc7358 (patch)
tree7c9e690909cb472945adf55550ca83f40e98108f /AppDelegate.cs
parent0727e26e1904afc0cdeccfe8427e0d538953fe83 (diff)
[macdoc] Don't bark on file creation problems due to permissions
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r--AppDelegate.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index 7461362..80be34d 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -46,9 +46,11 @@ namespace macdoc
var image = Path.Combine (MonodocDir, "mdocimages", res);
if (File.Exists (image))
continue;
-
- using (var output = File.Create (image))
- mdocAssembly.GetManifestResourceStream (res).CopyTo (output);
+
+ try {
+ using (var output = File.Create (image))
+ mdocAssembly.GetManifestResourceStream (res).CopyTo (output);
+ } catch (UnauthorizedAccessException) {}
}
}