crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

what.cc (269B)


      1 #include "error"
      2 #include "../config/config"
      3 
      4 char const *Error::what() const throw (){
      5     ostringstream o;
      6     if (config.prefixtimestamp()) {
      7 	Timestamp tm;
      8 	o << tm.desc() << ' ';
      9     }
     10     o << pthread_self() << " ERROR: " << desc;
     11     return (o.str().c_str());
     12 }