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:
parent
d2d3926420
commit
fcbcd3568d
|
@ -156,7 +156,11 @@ namespace SparkleShare {
|
||||||
"Please double check the address and\n" +
|
"Please double check the address and\n" +
|
||||||
"network connection.");
|
"network connection.");
|
||||||
|
|
||||||
|
try {
|
||||||
Directory.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName));
|
Directory.Delete (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName));
|
||||||
|
} catch (System.IO.DirectoryNotFoundException) {
|
||||||
|
SparkleHelpers.DebugInfo ("Config", "[" + RepoName + "] Temporary directory did not exist...");
|
||||||
|
}
|
||||||
|
|
||||||
ErrorBubble.AddAction ("", _("Try Again…"),
|
ErrorBubble.AddAction ("", _("Try Again…"),
|
||||||
delegate {
|
delegate {
|
||||||
|
|
Loading…
Reference in a new issue