comparison Core/JobsEngine/SetOfCommandsJob.cpp @ 3240:e44e0127e553

Fix issue #134 (/patient/modify gives 500, should really be 400)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 Feb 2019 17:26:45 +0100
parents 4e43e67f8ecf
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3239:407e1a188105 3240:e44e0127e553
172 if (!commands_[position_]->Execute()) 172 if (!commands_[position_]->Execute())
173 { 173 {
174 // Error 174 // Error
175 if (!permissive_) 175 if (!permissive_)
176 { 176 {
177 return JobStepResult::Failure(ErrorCode_InternalError); 177 return JobStepResult::Failure(ErrorCode_InternalError, NULL);
178 } 178 }
179 } 179 }
180 } 180 }
181 catch (OrthancException& e) 181 catch (OrthancException& e)
182 { 182 {
184 { 184 {
185 LOG(WARNING) << "Ignoring an error in a permissive job: " << e.What(); 185 LOG(WARNING) << "Ignoring an error in a permissive job: " << e.What();
186 } 186 }
187 else 187 else
188 { 188 {
189 return JobStepResult::Failure(e.GetErrorCode()); 189 return JobStepResult::Failure(e);
190 } 190 }
191 } 191 }
192 192
193 position_ += 1; 193 position_ += 1;
194 194