From 80df59c8e73de1c0e12f776ffd2d6c997ac4581e Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 17 Nov 2011 22:08:07 -0800 Subject: [PATCH] Better exception info for diskprovider --- NzbDrone.Common/DiskProvider.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Common/DiskProvider.cs b/NzbDrone.Common/DiskProvider.cs index 340ad3ff7..80fe1e3ac 100644 --- a/NzbDrone.Common/DiskProvider.cs +++ b/NzbDrone.Common/DiskProvider.cs @@ -106,7 +106,16 @@ namespace NzbDrone.Common public virtual void MoveDirectory(string source, string destination) { - Directory.Move(source, destination); + try + { + Directory.Move(source, destination); + } + catch (Exception e) + { + e.Data.Add("Source", source); + e.Data.Add("Destination", destination); + throw; + } } public virtual void InheritFolderPermissions(string filename)