Repository: olingo-odata2
Updated Branches:
  refs/heads/master 070090ead -> f892d2465


[OLINGO-1161] Swallows exceptions on update


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/f892d246
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/f892d246
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/f892d246

Branch: refs/heads/master
Commit: f892d2465ec89d251b1eda60a6ee36cfba199996
Parents: 070090e
Author: Archana Rai <archana....@sap.com>
Authored: Fri Aug 11 14:17:23 2017 +0530
Committer: Archana Rai <archana....@sap.com>
Committed: Fri Aug 11 14:17:23 2017 +0530

----------------------------------------------------------------------
 .../odata2/jpa/processor/api/ODataJPADefaultProcessor.java      | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/f892d246/odata2-jpa-processor/jpa-api/src/main/java/org/apache/olingo/odata2/jpa/processor/api/ODataJPADefaultProcessor.java
----------------------------------------------------------------------
diff --git 
a/odata2-jpa-processor/jpa-api/src/main/java/org/apache/olingo/odata2/jpa/processor/api/ODataJPADefaultProcessor.java
 
b/odata2-jpa-processor/jpa-api/src/main/java/org/apache/olingo/odata2/jpa/processor/api/ODataJPADefaultProcessor.java
index 848293e..7cf1719 100644
--- 
a/odata2-jpa-processor/jpa-api/src/main/java/org/apache/olingo/odata2/jpa/processor/api/ODataJPADefaultProcessor.java
+++ 
b/odata2-jpa-processor/jpa-api/src/main/java/org/apache/olingo/odata2/jpa/processor/api/ODataJPADefaultProcessor.java
@@ -290,10 +290,7 @@ public abstract class ODataJPADefaultProcessor extends 
ODataJPAProcessor {
 
       return BatchResponsePart.responses(responses).changeSet(true).build();
     } catch (Exception e) {
-
-      List<ODataResponse> errorResponses = new ArrayList<ODataResponse>(1);
-      
errorResponses.add(ODataResponse.entity(e).status(HttpStatusCodes.INTERNAL_SERVER_ERROR).build());
-      return 
BatchResponsePart.responses(errorResponses).changeSet(false).build();
+      throw new ODataException("Error on processing request content:" + 
e.getMessage(), e);
     } finally {
       close(true);
     }

Reply via email to