Mercurial > hg > orthanc
comparison Core/DicomNetworking/Internals/FindScp.cpp @ 2954:d924f9bb61cc
taking advantage of details in OrthancException
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:35:34 +0100 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2953:210d5afd8f2b | 2954:d924f9bb61cc |
---|---|
198 **/ | 198 **/ |
199 | 199 |
200 assert(data.modalities_ != NULL); | 200 assert(data.modalities_ != NULL); |
201 if (!data.modalities_->LookupAETitle(modality, *data.remoteAet_)) | 201 if (!data.modalities_->LookupAETitle(modality, *data.remoteAet_)) |
202 { | 202 { |
203 LOG(ERROR) << "Modality with AET \"" << *data.remoteAet_ | 203 throw OrthancException(ErrorCode_UnknownModality, |
204 << "\" is not defined in the \"DicomModalities\" configuration option"; | 204 "Modality with AET \"" + (*data.remoteAet_) + |
205 throw OrthancException(ErrorCode_UnknownModality); | 205 "\" is not defined in the \"DicomModalities\" configuration option"); |
206 } | 206 } |
207 | 207 |
208 | 208 |
209 if (sopClassUid == UID_FINDModalityWorklistInformationModel) | 209 if (sopClassUid == UID_FINDModalityWorklistInformationModel) |
210 { | 210 { |