Changeset 1842


Ignore:
Timestamp:
2/17/2010 8:57:20 AM (4 years ago)
Author:
lowjoel
Message:

Fixed potential problem creating the report directory if the disk is full.

File:
1 edited

Legend:

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

    r1823 r1842  
    7474                CrashReportName, CultureInfo.InvariantCulture); 
    7575            string currentCrashReport = Path.Combine(CrashReportsPath, crashName); 
     76 
     77            //Create the report folder. If we can't create the report folder, we can't 
     78            //create the report contents. 
    7679            Directory.CreateDirectory(currentCrashReport); 
     80            if (!Directory.Exists(currentCrashReport)) 
     81                return; 
    7782 
    7883            //Store the steps which we have completed. 
Note: See TracChangeset for help on using the changeset viewer.