Skip to content

Commit

Permalink
Added a bit of detail for UnauthorizedAccess on file deletion
Browse files Browse the repository at this point in the history
imDema committed May 13, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 07e3903 commit 340d6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeMove/ProgressDialog.cs
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ private bool MoveFolder(string source, string destination, bool doNotReplace)
catch (UnauthorizedAccessException ex)
{
switch((DialogResult)Invoke(new Func<DialogResult>
(() => MessageBox.Show(this, String.Format(Properties.Resources.ErrorUnauthorizedMoveMessage , ex.Message),"Error while moving contents", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error,MessageBoxDefaultButton.Button2))))
(() => MessageBox.Show(this, String.Format(Properties.Resources.ErrorUnauthorizedMoveMessage , ex.Message),"Error while moving contents\n Unauthorized Access Exception", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error,MessageBoxDefaultButton.Button2))))
{
default:
case DialogResult.Abort:

0 comments on commit 340d6f4

Please sign in to comment.