From 0c19b1386259b7144bc6c95954f965c469835522 Mon Sep 17 00:00:00 2001 From: Daniel Silverthorn Date: Mon, 26 Mar 2018 14:27:47 -0400 Subject: Pass error message through on vertex add Change-Id: I55bc4aaa8fdb31900d8a62d846bdd9d70764610c Issue-ID: AAI-945 Signed-off-by: Daniel Silverthorn --- src/main/java/org/onap/crud/dao/champ/ChampDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/crud/dao/champ/ChampDao.java b/src/main/java/org/onap/crud/dao/champ/ChampDao.java index 18d4946..344d797 100644 --- a/src/main/java/org/onap/crud/dao/champ/ChampDao.java +++ b/src/main/java/org/onap/crud/dao/champ/ChampDao.java @@ -260,7 +260,7 @@ public class ChampDao implements GraphDao { } else { // We didn't create a vertex with the supplied type, so just throw an // exception. - throw new CrudException("Failed to create vertex", Response.Status.fromStatusCode(getResult.getResultCode())); + throw new CrudException("Failed to create vertex: " + getResult.getFailureCause(), Response.Status.fromStatusCode(getResult.getResultCode())); } } -- cgit 1.2.3-korg