Ignore:
Timestamp:
3/1/2010 6:37:40 AM (2 years ago)
Author:
lowjoel
Message:

When we cannot lock volumes, throw the real cause of the exception instead of a generic IOException.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/VolumeInfo.cs

    r1843 r1865  
    727727            { 
    728728                if (i > 100) 
    729                     throw new IOException("Could not lock volume."); 
     729                    throw Win32ErrorCode.GetExceptionForWin32Error(Marshal.GetLastWin32Error())); 
    730730                System.Threading.Thread.Sleep(100); 
    731731            } 
Note: See TracChangeset for help on using the changeset viewer.