Browse Source

fix exception handler in case of errors while deleting a directory from a SVN repository.

pull/74/merge
Siegfried Pammer 12 years ago
parent
commit
13b2b3a7f9
  1. 5
      src/AddIns/VersionControl/SubversionAddIn/Src/Commands/AutostartCommands.cs

5
src/AddIns/VersionControl/SubversionAddIn/Src/Commands/AutostartCommands.cs

@ -231,6 +231,7 @@ namespace ICSharpCode.Svn.Commands
using (SvnClientWrapper client = new SvnClientWrapper()) { using (SvnClientWrapper client = new SvnClientWrapper()) {
SvnMessageView.HandleNotifications(client); SvnMessageView.HandleNotifications(client);
try {
Status status = client.SingleStatus(fullName); Status status = client.SingleStatus(fullName);
switch (status.TextStatus) { switch (status.TextStatus) {
case StatusKind.None: case StatusKind.None:
@ -274,6 +275,10 @@ namespace ICSharpCode.Svn.Commands
} }
break; break;
} }
} catch (SvnClientException ex3) {
e.Cancel = true;
MessageService.ShowError(ex3.Message);
}
} }
return; return;
} }

Loading…
Cancel
Save