Skip to content

Commit 286f35b

Browse files
author
Burak Serdar
committed
Add doc errors when all docs fail
1 parent d415f69 commit 286f35b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crud/src/main/java/com/redhat/lightblue/mediator/Mediator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public Response insert(InsertionRequest req) {
147147
ctx.setStatus(OperationStatus.ERROR);
148148
}
149149
} else {
150+
List<DataError> dataErrors=setResponseResults(ctx,req,response);
151+
response.getDataErrors().addAll(dataErrors);
150152
ctx.setStatus(OperationStatus.ERROR);
151153
}
152154
}
@@ -210,6 +212,9 @@ public Response save(SaveRequest req) {
210212
} else {
211213
ctx.setStatus(OperationStatus.ERROR);
212214
}
215+
} else {
216+
List<DataError> dataErrors=setResponseResults(ctx,req,response);
217+
response.getDataErrors().addAll(dataErrors);
213218
}
214219
}
215220
response.getErrors().addAll(ctx.getErrors());

0 commit comments

Comments
 (0)