[PATCH] Added error message with create exception

Wald Commits scm-commit at wald.intevation.org
Thu Jun 14 15:31:18 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1528983053 -7200
# Node ID 408fd2cb7bb5caf5503d3836de7bd15293e44d3f
# Parent  673d3bf7eb1126d656be7de34d2404f3e1a6bb17
Added error message with create exception

diff -r 673d3bf7eb11 -r 408fd2cb7bb5 artifact-database/src/main/java/org/dive4elements/artifactdatabase/rest/CreateResource.java
--- a/artifact-database/src/main/java/org/dive4elements/artifactdatabase/rest/CreateResource.java	Wed Jun 13 15:36:06 2018 +0200
+++ b/artifact-database/src/main/java/org/dive4elements/artifactdatabase/rest/CreateResource.java	Thu Jun 14 15:30:53 2018 +0200
@@ -105,6 +105,7 @@
                                              inputDocument));
         }
         catch (ArtifactDatabaseException adbe) {
+            logger.error("Create artifact failed", adbe);
             Response response = getResponse();
             response.setStatus(
                 Status.CLIENT_ERROR_UNPROCESSABLE_ENTITY, adbe.getMessage());


More information about the Dive4Elements-commits mailing list