X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmException.cxx;h=c1ee3086fcb29c3a90d2b79fcbc013560f14e3f5;hb=7247c0878e67924897231ae1cb7da1280d10c0ba;hp=9ad0f4cf73f7969959cd6f19dae2333f63fe9a9e;hpb=0ba680a668e29ec5f58a2cf9af862be253c51055;p=gdcm.git diff --git a/src/gdcmException.cxx b/src/gdcmException.cxx index 9ad0f4cf..c1ee3086 100644 --- a/src/gdcmException.cxx +++ b/src/gdcmException.cxx @@ -2,6 +2,7 @@ #include #include +using namespace std; gdcmException::gdcmException(const string &f, const string& msg) throw() @@ -76,7 +77,7 @@ gdcmException::operator const char *() const throw() { ostream& operator<<(ostream &os, const gdcmException &e) { try { - os << "Exception " << e.getName() << " thrown: " << e.error << endl; + os << "Exception " << e.getName() << " thrown: " << e.getError() << endl; } catch(...) { gdcmException::fatal("operator<<(ostream &, const gdcmException&)");