Repository: stratos Updated Branches: refs/heads/4.0.0-grouping 91a8babd7 -> a0f91a208
adding a more meaningful exception message for Startup Order issues Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/a0f91a20 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/a0f91a20 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/a0f91a20 Branch: refs/heads/4.0.0-grouping Commit: a0f91a208c20114e8a53975ec68646d5ae272e0b Parents: 91a8bab Author: Isuru Haththotuwa <[email protected]> Authored: Sun Oct 12 19:18:28 2014 +0530 Committer: Isuru Haththotuwa <[email protected]> Committed: Sun Oct 12 19:18:28 2014 +0530 ---------------------------------------------------------------------- .../stratos/cloud/controller/application/parser/ParserUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/a0f91a20/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/application/parser/ParserUtils.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/application/parser/ParserUtils.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/application/parser/ParserUtils.java index dd72508..edc0486 100644 --- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/application/parser/ParserUtils.java +++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/application/parser/ParserUtils.java @@ -108,7 +108,8 @@ public class ParserUtils { aliasBasedComponent = "group.".concat(aliasBasedComponent); } else { - throw new ApplicationDefinitionException("Incorrect Startup Order specified"); + throw new ApplicationDefinitionException("Incorrect Startup Order specified, " + + "should start with 'cartridge.' or 'group.'"); } aliasBasedComponents.add(aliasBasedComponent); }
