From: Daniel Silverthorn Date: Mon, 26 Mar 2018 18:27:47 +0000 (-0400) Subject: Pass error message through on vertex add X-Git-Tag: 2.0.0-ONAP~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F38633%2F3;p=aai%2Fgizmo.git Pass error message through on vertex add Change-Id: I55bc4aaa8fdb31900d8a62d846bdd9d70764610c Issue-ID: AAI-945 Signed-off-by: Daniel Silverthorn --- 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())); } }