Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 2135:cadfe0a2a393
fix in the sample basic plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 13:42:33 +0100 |
parents | ddc75c6c712d |
children | dd609a99d39a |
comparison
equal
deleted
inserted
replaced
2134:ddc75c6c712d | 2135:cadfe0a2a393 |
---|---|
100 } | 100 } |
101 } | 101 } |
102 catch (OrthancException& e) | 102 catch (OrthancException& e) |
103 { | 103 { |
104 LOG(ERROR) << "Error in the " << it->GetDescription() | 104 LOG(ERROR) << "Error in the " << it->GetDescription() |
105 << " callback while signaling a change: " << e.What(); | 105 << " callback while signaling a change: " << e.What() |
106 << " (code " << e.GetErrorCode() << ")"; | |
106 } | 107 } |
107 } | 108 } |
108 } | 109 } |
109 } | 110 } |
110 } | 111 } |
220 } | 221 } |
221 } | 222 } |
222 catch (OrthancException& e) | 223 catch (OrthancException& e) |
223 { | 224 { |
224 LOG(ERROR) << "Error in the " << it->GetDescription() | 225 LOG(ERROR) << "Error in the " << it->GetDescription() |
225 << " callback while receiving an instance: " << e.What(); | 226 << " callback while receiving an instance: " << e.What() |
227 << " (code " << e.GetErrorCode() << ")"; | |
226 throw; | 228 throw; |
227 } | 229 } |
228 } | 230 } |
229 } | 231 } |
230 | 232 |
297 it->GetListener().SignalStoredInstance(resultPublicId, dicom, simplifiedTags); | 299 it->GetListener().SignalStoredInstance(resultPublicId, dicom, simplifiedTags); |
298 } | 300 } |
299 catch (OrthancException& e) | 301 catch (OrthancException& e) |
300 { | 302 { |
301 LOG(ERROR) << "Error in the " << it->GetDescription() | 303 LOG(ERROR) << "Error in the " << it->GetDescription() |
302 << " callback while receiving an instance: " << e.What(); | 304 << " callback while receiving an instance: " << e.What() |
305 << " (code " << e.GetErrorCode() << ")"; | |
303 } | 306 } |
304 } | 307 } |
305 } | 308 } |
306 | 309 |
307 return status; | 310 return status; |