src/Error.cc
author Tero Marttila <terom@fixme.fi>
Sun, 02 Jun 2013 16:15:23 +0300
changeset 448 34bdf0783874
parent 227 39cd6861e43e
permissions -rw-r--r--
network: fix size_t compile errors
227
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     1
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     2
#include "Error.hh"
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     3
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     4
std::ostream& operator<< (std::ostream &s, Error &e) {
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     5
    return s << e.what();
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     6
}
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     7