When adding a remote ssh repository which doesn't exist, System.IO.DirectoryNotFoundException was previously not caught, causing SparkleShare to exit

This commit is contained in:
Steven Harms 2010-06-17 10:39:02 -04:00
parent 214a4a7e24
commit c3a55dc83f

View file

@ -156,7 +156,11 @@ namespace SparkleShare {
"Please double check the address and\n" +
"network connection.");
Directory.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName));
try {
Directory.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName));
} catch (System.IO.DirectoryNotFoundException) {
SparkleHelpers.DebugInfo ("Config", "[" + RepoName + "] Temporary directory did not exist...");
}
ErrorBubble.AddAction ("", _("Try Again…"),
delegate {