This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git

commit ab33950c1a12fbc214ca8c87f970111686d79267
Author: liubao <[email protected]>
AuthorDate: Thu Jan 23 16:35:39 2020 +0800

    [SCB-1732]support inheritance schema definition
---
 .../main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
 
b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
index afd487d..e879c20 100644
--- 
a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
+++ 
b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestCodec.java
@@ -71,12 +71,10 @@ public final class RestCodec {
         if (DynamicPropertyFactory.getInstance().getBooleanProperty(
             RestConst.PRINT_CODEC_ERROR_MESSGAGE, false).get()) {
           LOG.error(message, e);
-          throw new InvocationException(Status.BAD_REQUEST.getStatusCode(), 
Status.BAD_REQUEST.getReasonPhrase(),
-              message, e);
         } else {
           LOG.error("{} Add {}=true to print the details.", message, 
RestConst.PRINT_CODEC_ERROR_MESSGAGE);
-          throw new InvocationException(Status.BAD_REQUEST, message);
         }
+        throw new InvocationException(Status.BAD_REQUEST, message);
       }
     }
 

Reply via email to