Changeset 258

Show
Ignore:
Timestamp:
01/14/08 07:08:25 (11 years ago)
Author:
rsteenson
Message:

[TRUNK] Error message was not sent when an general error occured during visitation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • capture-hpc/trunk/capture-client/Analyzer.cpp

    r255 r258  
    242242        bool send = false; 
    243243        std::wstring type; 
     244        std::wstring error_code; 
     245        Element element = visitEvent.toElement(); 
    244246 
    245247        switch(eventType) 
     
    262264                send = true; 
    263265                type = L"error"; 
     266                element.addAttribute(L"error-code", boost::lexical_cast<std::wstring>(eventType)); 
    264267                break; 
    265268        } 
    266269 
    267270        if(send) 
    268         { 
    269                 Element element = visitEvent.toElement(); 
     271        {        
    270272                element.addAttribute(L"type", type); 
    271273                //element.addAttribute(L"time", Time::getCurrentTime());