comparison OrthancServer/Scheduler/DeleteInstanceCommand.cpp @ 1145:0479d02c6778

Plugins can retrieve the path to Orthanc and to its configuration file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Sep 2014 13:06:16 +0200
parents 060e8918d7a4
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1144:fef79a477e09 1145:0479d02c6778
45 LOG(INFO) << "Deleting instance " << *it; 45 LOG(INFO) << "Deleting instance " << *it;
46 46
47 try 47 try
48 { 48 {
49 Json::Value tmp; 49 Json::Value tmp;
50 context_.GetIndex().DeleteResource(tmp, *it, ResourceType_Instance); 50 context_.DeleteResource(tmp, *it, ResourceType_Instance);
51 } 51 }
52 catch (OrthancException& e) 52 catch (OrthancException& e)
53 { 53 {
54 LOG(ERROR) << "Unable to delete instance " << *it << " in a Lua script: " << e.What(); 54 LOG(ERROR) << "Unable to delete instance " << *it << " in a Lua script: " << e.What();
55 } 55 }