From d8cdf450a8e4c7f83b5267228a6f7a38b5ad595d Mon Sep 17 00:00:00 2001 From: shrikantawachar Date: Tue, 27 Mar 2018 14:28:17 +0530 Subject: Enhance Activity Spec Update error message Updated error message Change-Id: I679c1c407fc9a6cd452347844558f77fef448beb Issue-ID: SDC-1048 Signed-off-by: shrikantawachar --- .../org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'services') 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()); } -- cgit 1.2.3-korg