Browse Source

Report error code when deleting file fails.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5852 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 15 years ago
parent
commit
cb0c99a10e
  1. 2
      src/Main/Base/Project/Src/Util/NativeMethods.cs

2
src/Main/Base/Project/Src/Util/NativeMethods.cs

@ -94,7 +94,7 @@ namespace ICSharpCode.SharpDevelop @@ -94,7 +94,7 @@ namespace ICSharpCode.SharpDevelop
info.pFrom = fileName + "\0"; // pFrom is double-null-terminated
int result = SHFileOperation(ref info);
if (result != 0)
throw new IOException("Could not delete file " + fileName + ". Error " + result);
throw new IOException("Could not delete file " + fileName + ". Error " + result, result);
}
#endregion

Loading…
Cancel
Save