From 9ab86aca0b3fa407c5c4ddf55752016e67b633c4 Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Tue, 22 Oct 2013 16:06:23 +0200 Subject: [PATCH] better message (because I was always fooled by this cleaning error message displayed BEFORE the real error!) --- GitTfs/Commands/Clone.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GitTfs/Commands/Clone.cs b/GitTfs/Commands/Clone.cs index 9723b11f..b56219b2 100644 --- a/GitTfs/Commands/Clone.cs +++ b/GitTfs/Commands/Clone.cs @@ -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); }