Changeset 3078 for box/trunk


Ignore:
Timestamp:
02/02/2012 22:16:24 (4 months ago)
Author:
chris
Message:

Store more details in protocol exceptions to help with debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/makeprotocol.pl.in

    r2990 r3078  
    584584                { 
    585585                        SetLastError(type, subType); 
    586                         BOX_WARNING(requestCommand << " command failed: " 
     586                        THROW_EXCEPTION_MESSAGE(ConnectionException, 
     587                                Conn_Protocol_UnexpectedReply, 
     588                                requestCommand << " command failed: " 
    587589                                "received error " << 
    588590                                (($error_class&)rReply).GetMessage()); 
     
    591593                { 
    592594                        SetLastError(Protocol::UnknownError, Protocol::UnknownError); 
    593                         BOX_WARNING(requestCommand << " command failed: " 
     595                        THROW_EXCEPTION_MESSAGE(ConnectionException, 
     596                                Conn_Protocol_UnexpectedReply, 
     597                                requestCommand << " command failed: " 
    594598                                "received unexpected response type " << 
    595599                                rReply.GetType()); 
    596600                } 
    597                  
    598                 // Throw an exception 
    599                 THROW_EXCEPTION(ConnectionException, Conn_Protocol_UnexpectedReply) 
    600601        } 
    601602} 
Note: See TracChangeset for help on using the changeset viewer.