Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/DeleteResourceOperation.cpp @ 2605:1e11b0229e04 jobs
StorePeerOperation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 May 2018 18:06:53 +0200 |
parents | 988936118354 |
children | 25225f0b4f33 |
comparison
equal
deleted
inserted
replaced
2604:76ef12fa136c | 2605:1e11b0229e04 |
---|---|
47 switch (input.GetType()) | 47 switch (input.GetType()) |
48 { | 48 { |
49 case JobOperationValue::Type_DicomInstance: | 49 case JobOperationValue::Type_DicomInstance: |
50 { | 50 { |
51 const DicomInstanceOperationValue& instance = dynamic_cast<const DicomInstanceOperationValue&>(input); | 51 const DicomInstanceOperationValue& instance = dynamic_cast<const DicomInstanceOperationValue&>(input); |
52 LOG(INFO) << "Deleting instance: " << instance.GetId(); | 52 LOG(INFO) << "Lua: Deleting instance: " << instance.GetId(); |
53 | 53 |
54 try | 54 try |
55 { | 55 { |
56 Json::Value tmp; | 56 Json::Value tmp; |
57 context_.DeleteResource(tmp, instance.GetId(), ResourceType_Instance); | 57 context_.DeleteResource(tmp, instance.GetId(), ResourceType_Instance); |
58 } | 58 } |
59 catch (OrthancException& e) | 59 catch (OrthancException& e) |
60 { | 60 { |
61 LOG(ERROR) << "Unable to delete instance " << instance.GetId() << ": " << e.What(); | 61 LOG(ERROR) << "Lua: Unable to delete instance " << instance.GetId() << ": " << e.What(); |
62 } | 62 } |
63 | 63 |
64 break; | 64 break; |
65 } | 65 } |
66 | 66 |