Improve end user message for InvalidServiceGroupException
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/9e4e9263 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9e4e9263 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9e4e9263 Branch: refs/heads/master Commit: 9e4e9263bdea9d2210ee8444fc87ee82f7cdbffd Parents: f59cfa8 Author: Lahiru Sandaruwan <[email protected]> Authored: Fri Jun 19 17:39:58 2015 +0530 Committer: Lahiru Sandaruwan <[email protected]> Committed: Fri Jun 19 17:39:58 2015 +0530 ---------------------------------------------------------------------- .../stratos/autoscaler/services/impl/AutoscalerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/9e4e9263/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java index 28ba630..bcf4763 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java @@ -627,7 +627,7 @@ public class AutoscalerServiceImpl implements AutoscalerService { public boolean addServiceGroup(ServiceGroup servicegroup) throws InvalidServiceGroupException { if (servicegroup == null || StringUtils.isEmpty(servicegroup.getName())) { - String msg = "Cartridge group cannot be null or service name cannot be empty."; + String msg = "Cartridge group is null or cartridge group name is empty."; log.error(msg); throw new InvalidServiceGroupException(msg); }
