better message

(because I was always fooled by this cleaning error message displayed BEFORE the real error!)
This commit is contained in:
Philippe Miossec
2013-10-22 16:06:23 +02:00
parent f4f9e26203
commit 9ab86aca0b
+2 -2
View File
@@ -85,13 +85,13 @@ namespace Sep.Git.Tfs.Commands
catch (IOException e)
{
// swallow IOException. Smth went wrong before this and we're much more interested in that error
string msg = String.Format("Something went wrong, can't cleanup files because of IOException:\n{0}\n", e.IndentExceptionMessage());
string msg = String.Format("warning: Something went wrong while cleaning file after internal error (See below).\n Can't cleanup files because of IOException:\n{0}\n", e.IndentExceptionMessage());
Trace.WriteLine(msg);
}
catch (UnauthorizedAccessException e)
{
// swallow it also
string msg = String.Format("Something went wrong, can't cleanup files because of UnauthorizedAccessException:\n{0}\n", e.IndentExceptionMessage());
string msg = String.Format("warning: Something went wrong while cleaning file after internal error (See below).\n Can't cleanup files because of UnauthorizedAccessException:\n{0}\n", e.IndentExceptionMessage());
Trace.WriteLine(msg);
}