Mercurial > hg > orthanc
diff OrthancServer/Scheduler/ServerCommandInstance.cpp @ 1001:f3929718ea7e lua-scripting
autorouting primitives
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jul 2014 15:31:42 +0200 |
parents | 13e230bbd882 |
children | 26642cecd36d |
line wrap: on
line diff
--- a/OrthancServer/Scheduler/ServerCommandInstance.cpp Fri Jul 04 14:14:14 2014 +0200 +++ b/OrthancServer/Scheduler/ServerCommandInstance.cpp Fri Jul 04 15:31:42 2014 +0200 @@ -39,7 +39,21 @@ bool ServerCommandInstance::Execute(IListener& listener) { ListOfStrings outputs; - if (!filter_->Apply(outputs, inputs_)) + + bool success = false; + + try + { + if (filter_->Apply(outputs, inputs_)) + { + success = true; + } + } + catch (OrthancException&) + { + } + + if (!success) { listener.SignalFailure(jobId_); return true;