aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorshrikantawachar <shrikant.awachar@amdocs.com>2018-03-27 14:28:17 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-28 11:30:13 +0000
commitd8cdf450a8e4c7f83b5267228a6f7a38b5ad595d (patch)
tree8acbc23075fdef9d95b83c9f0a20b3b2860d33b3 /services
parenta40adb9c04fad7da5174b649bff9d1bf6a2d840b (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>
Diffstat (limited to 'services')
-rw-r--r--services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java5
1 files changed, 2 insertions, 3 deletions
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 07863234c3..b4a735409c 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 @@ public class ActivitySpecManagerImpl implements ActivitySpecManager {
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 @@ public class ActivitySpecManagerImpl implements ActivitySpecManager {
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());
}