Ignore:
Timestamp:
09/01/15 17:15:42 (9 years ago)
Author:
rlacroix
Message:

Rephrase some error messages so that they are clearer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute.cpp

    r501 r680  
    8686      } 
    8787 
    88      CMessage& operator<<(CMessage& msg, const CAttribute&  type) 
     88     CMessage& operator<<(CMessage& msg, const CAttribute& type) 
    8989     { 
    9090//       msg.push(*type.clone()) ; 
     
    9292     } 
    9393  
    94       CBufferOut& operator<<(CBufferOut& buffer, CAttribute&  type) 
     94      CBufferOut& operator<<(CBufferOut& buffer, CAttribute& type) 
    9595     { 
    9696     
    97        if (!type.toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, CAttribute&  type)", 
    98                                            <<"Buffer remain size is to low for size type") ; 
     97       if (!type.toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, CAttribute& type)", 
     98                                         << "Not enough free space in buffer to queue the attribute."); 
    9999      return buffer ; 
    100100     } 
    101101      
    102      CBufferIn& operator>>(CBufferIn& buffer, CAttribute&  type) 
     102     CBufferIn& operator>>(CBufferIn& buffer, CAttribute& type) 
    103103     { 
    104104     
    105        if (!type.fromBuffer(buffer)) ERROR("CBufferInt& operator>>(CBufferIn& buffer, CAttribute&  type)", 
    106                                            <<"Buffer remain size is to low for size type") ; 
     105       if (!type.fromBuffer(buffer)) ERROR("CBufferInt& operator>>(CBufferIn& buffer, CAttribute& type)", 
     106                                           << "Not enough data in buffer to unqueue the attribute."); 
    107107       return buffer ; 
    108108     } 
Note: See TracChangeset for help on using the changeset viewer.