# HG changeset patch # User amazy # Date 1516221236 -3600 # Node ID 51ea632f0c557a6d952781c94a0c25f45a3f9e10 # Parent 45de30d4f36250c9ba46ed4a70fdc14999d6106d removed 'in Lua script' in error messages that is misleading since these commands can also be called from the API diff -r 45de30d4f362 -r 51ea632f0c55 OrthancServer/Scheduler/DeleteInstanceCommand.cpp --- a/OrthancServer/Scheduler/DeleteInstanceCommand.cpp Wed Jan 17 17:34:15 2018 +0100 +++ b/OrthancServer/Scheduler/DeleteInstanceCommand.cpp Wed Jan 17 21:33:56 2018 +0100 @@ -53,7 +53,7 @@ } catch (OrthancException& e) { - LOG(ERROR) << "Unable to delete instance " << *it << " in a Lua script: " << e.What(); + LOG(ERROR) << "Unable to delete instance " << *it << ": " << e.What(); } } diff -r 45de30d4f362 -r 51ea632f0c55 OrthancServer/Scheduler/ModifyInstanceCommand.cpp --- a/OrthancServer/Scheduler/ModifyInstanceCommand.cpp Wed Jan 17 17:34:15 2018 +0100 +++ b/OrthancServer/Scheduler/ModifyInstanceCommand.cpp Wed Jan 17 21:33:56 2018 +0100 @@ -115,7 +115,7 @@ } catch (OrthancException& e) { - LOG(ERROR) << "Unable to modify instance " << *it << " in a Lua script: " << e.What(); + LOG(ERROR) << "Unable to modify instance " << *it << ": " << e.What(); } } diff -r 45de30d4f362 -r 51ea632f0c55 OrthancServer/Scheduler/StorePeerCommand.cpp --- a/OrthancServer/Scheduler/StorePeerCommand.cpp Wed Jan 17 17:34:15 2018 +0100 +++ b/OrthancServer/Scheduler/StorePeerCommand.cpp Wed Jan 17 21:33:56 2018 +0100 @@ -77,7 +77,7 @@ } catch (OrthancException& e) { - LOG(ERROR) << "Unable to forward to an Orthanc peer in a Lua script (instance " + LOG(ERROR) << "Unable to forward to an Orthanc peer in (instance " << *it << ", peer " << peer_.GetUrl() << "): " << e.What(); if (!ignoreExceptions_) diff -r 45de30d4f362 -r 51ea632f0c55 OrthancServer/Scheduler/StoreScuCommand.cpp --- a/OrthancServer/Scheduler/StoreScuCommand.cpp Wed Jan 17 17:34:15 2018 +0100 +++ b/OrthancServer/Scheduler/StoreScuCommand.cpp Wed Jan 17 21:33:56 2018 +0100 @@ -84,7 +84,7 @@ { // Ignore transmission errors (e.g. if the remote modality is // powered off) - LOG(ERROR) << "Unable to forward to a modality in a Lua script (instance " + LOG(ERROR) << "Unable to forward to a modality in (instance " << *it << "): " << e.What(); if (!ignoreExceptions_)