commit | d8cdf450a8e4c7f83b5267228a6f7a38b5ad595d | [log] [tgz] |
---|---|---|
author | shrikantawachar <shrikant.awachar@amdocs.com> | Tue Mar 27 14:28:17 2018 +0530 |
committer | Vitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com> | Wed Mar 28 11:30:13 2018 +0000 |
tree | 8acbc23075fdef9d95b83c9f0a20b3b2860d33b3 | |
parent | a40adb9c04fad7da5174b649bff9d1bf6a2d840b [diff] |
Enhance Activity Spec Update error message Updated error message Change-Id: I679c1c407fc9a6cd452347844558f77fef448beb Issue-ID: SDC-1048 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
diff --git a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java index 0786323..b4a7354 100644 --- a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java +++ b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java
@@ -106,7 +106,7 @@ throw new CoreException(new ErrorCode.ErrorCodeBuilder() .withCategory(ErrorCategory.APPLICATION) .withId(exception.code().id()) - .withMessage("Name already in use").build()); + .withMessage("name already in use").build()); } } @@ -216,8 +216,7 @@ throw new CoreException(new ErrorCode.ErrorCodeBuilder() .withCategory(ErrorCategory.APPLICATION) .withId("ACTIVITYSPEC_NOT_FOUND") - .withMessage(String.format("Activity Spec With Id %s and version %s not found", - activitySpecId, version.getId())) + .withMessage("No Activity Spec found for the given identifiers") .build()); }