Changeset 2701


Ignore:
Timestamp:
5/25/2012 4:25:11 AM (2 years ago)
Author:
lowjoel
Message:

Some minor code cleanup. Also, when we get an empty response, return a null XML Document instead of throwing the exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.BlackBox/BlackBoxReportUploader.cs

    r2700 r2701  
    198198            Compress(overallProgress, progressChanged); 
    199199 
    200             using (FileStream bzipFile = new FileStream(ReportBaseName + ".tar.7z", 
     200            using (FileStream dumpFile = new FileStream(ReportBaseName + ".tar.7z", 
    201201                FileMode.Open, FileAccess.Read, FileShare.Read, 131072, FileOptions.DeleteOnClose)) 
    202             using (Stream logFile = Report.DebugLog) 
    203202            { 
    204203                List<PostDataField> fields = GetStackTraceField(Report.StackTrace); 
    205                 fields.Add(new PostDataFileField("crashReport", "Report.tar.7z", bzipFile)); 
     204                fields.Add(new PostDataFileField("crashReport", "Report.tar.7z", dumpFile)); 
    206205 
    207206                ProgressManager progress = new ProgressManager(); 
     
    298297                    return result; 
    299298                } 
     299            } 
     300            catch (XmlException) 
     301            { 
     302                return null; 
    300303            } 
    301304            catch (WebException e) 
Note: See TracChangeset for help on using the changeset viewer.