OLINGO-1355: correcting the error code check
This commit is contained in:
parent
74587d98f5
commit
6c3781f178
|
@ -80,7 +80,7 @@ public class BatchRequest extends ServiceRequest {
|
|||
try {
|
||||
txnId = handler.startTransaction();
|
||||
partResponse = processChangeSet(part, handler);
|
||||
if (partResponse.getResponses().get(0).getStatusCode() > 400) {
|
||||
if (partResponse.getResponses().get(0).getStatusCode() >= 400) {
|
||||
handler.rollback(txnId);
|
||||
} else {
|
||||
handler.commit(txnId);
|
||||
|
|
Loading…
Reference in New Issue