src/Error.cc
author terom
Mon, 08 Dec 2008 21:29:42 +0000
changeset 313 2562466a946d
parent 227 39cd6861e43e
permissions -rw-r--r--
draw rope behind player, fix LocalPlayer::draw warnings, don't show negative health
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