aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorNiharika Sharma <niharika.sharma@amdocs.com>2021-05-06 12:45:39 -0400
committerNiharika Sharma <niharika.sharma@amdocs.com>2021-05-06 12:45:39 -0400
commit9a2fe45b60853816c93f145509cce0ab67034839 (patch)
tree499a50c6409e452b4bef7d3cc230c75b418bae05 /src/main/java
parente054580016f5e4090ac990ff4b9cbdb63cd7f4e8 (diff)
Log proper error message for UpdatePropertyTool
Issue-ID: AAI-3328 Signed-off-by: Niharika Sharma <niharika.sharma@amdocs.com> Change-Id: I3e38c92b6b4343ec8153219a989e241e8e9e4127
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/aai/dbgen/UpdatePropertyToolInternal.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/aai/dbgen/UpdatePropertyToolInternal.java b/src/main/java/org/onap/aai/dbgen/UpdatePropertyToolInternal.java
index 91f62f9..a994c7b 100644
--- a/src/main/java/org/onap/aai/dbgen/UpdatePropertyToolInternal.java
+++ b/src/main/java/org/onap/aai/dbgen/UpdatePropertyToolInternal.java
@@ -212,12 +212,12 @@ public class UpdatePropertyToolInternal {
logAndPrint("Unsuccessful update transaction. Rolling back graph");
}
} catch (Exception e) {
+ logErrorAndPrint("ERROR: Could not properly query and update vertex.", e);
if (transaction != null) {
transaction.rollback();
} else {
logAndPrint("ERROR: JanusGraphTransaction object is null");
}
- logErrorAndPrint("ERROR: Could not properly query and update vertex.", e);
isValidTransaction = false;
} finally {
// close the transaction -- note: JanusGraph graph object will be closed in the main method.