comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 1017:9d0c7301596e lua-scripting

storescp modality
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jul 2014 10:43:47 +0200
parents b3f6fb1130cd
children b17b6bd59747
comparison
equal deleted inserted replaced
1012:52e71b25f9ce 1017:9d0c7301596e
152 152
153 static void Check(const OFCondition& cond) 153 static void Check(const OFCondition& cond)
154 { 154 {
155 if (cond.bad()) 155 if (cond.bad())
156 { 156 {
157 throw OrthancException("DicomUserConnection: " + std::string(cond.text())); 157 LOG(ERROR) << "DicomUserConnection: " << std::string(cond.text());
158 throw OrthancException(ErrorCode_NetworkProtocol);
158 } 159 }
159 } 160 }
160 161
161 void DicomUserConnection::PImpl::CheckIsOpen() const 162 void DicomUserConnection::PImpl::CheckIsOpen() const
162 { 163 {
163 if (!IsOpen()) 164 if (!IsOpen())
164 { 165 {
165 throw OrthancException("DicomUserConnection: First open the connection"); 166 LOG(ERROR) << "DicomUserConnection: First open the connection";
167 throw OrthancException(ErrorCode_NetworkProtocol);
166 } 168 }
167 } 169 }
168 170
169 171
170 void DicomUserConnection::CheckIsOpen() const 172 void DicomUserConnection::CheckIsOpen() const