From 0c19b1386259b7144bc6c95954f965c469835522 Mon Sep 17 00:00:00 2001 From: Daniel Silverthorn Date: Mon, 26 Mar 2018 14:27:47 -0400 Subject: [PATCH] Pass error message through on vertex add Change-Id: I55bc4aaa8fdb31900d8a62d846bdd9d70764610c Issue-ID: AAI-945 Signed-off-by: Daniel Silverthorn --- pom.xml | 12 ++++++------ src/main/java/org/onap/crud/dao/champ/ChampDao.java | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index c022668..52009f5 100644 --- a/pom.xml +++ b/pom.xml @@ -101,7 +101,7 @@ limitations under the License. org.onap.aai.logging-service common-logging - 1.1.0 + 1.2.2 org.glassfish.jersey.core @@ -116,22 +116,22 @@ limitations under the License. org.onap.aai.event-client event-client-dmaap - 1.2.0 + 1.2.1 org.onap.aai.aai-common aai-schema - 1.2.1-SNAPSHOT + 1.2.1 org.onap.aai.aai-common aai-utils - 1.2.0 + 1.2.1 org.onap.aai.aai-common aai-core - 1.2.1-SNAPSHOT + 1.2.1 * @@ -143,7 +143,7 @@ limitations under the License. org.onap.aai.aai-common aai-auth - 1.2.0 + 1.2.1 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())); } } -- 2.16.6