summaryrefslogtreecommitdiffstats
path: root/vnf-sdk-function-test/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'vnf-sdk-function-test/src/main')
-rw-r--r--vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/util/RestResponseUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/util/RestResponseUtil.java b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/util/RestResponseUtil.java
index 6b40ed2..317f957 100644
--- a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/util/RestResponseUtil.java
+++ b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/util/RestResponseUtil.java
@@ -35,7 +35,7 @@ public class RestResponseUtil {
public static Response getErrorResponse(Object obj) {
if(obj != null) {
- return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(obj).build();
+ return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(GsonUtil.objectToString(obj)).build();
} else {
return Response.serverError().build();
}