Resolving STRATOS-1401
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/11e974b0 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/11e974b0 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/11e974b0 Branch: refs/heads/master Commit: 11e974b06030062fd6e5dedd7d386c24d4375af8 Parents: 083180f Author: Dinithi <[email protected]> Authored: Wed May 13 10:37:57 2015 +0530 Committer: Dinithi <[email protected]> Committed: Wed May 13 10:37:57 2015 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/stratos/cli/RestClient.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/11e974b0/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestClient.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestClient.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestClient.java index 439544b..66fe9cb 100644 --- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestClient.java +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestClient.java @@ -169,6 +169,8 @@ public class RestClient implements GenericRestClient { System.out.println(String.format("Successfully added %s", entityName)); } else if (responseCode == 500) { System.out.println("Internal server error occurred"); + } else if (responseCode == 409) { + System.out.println(String.format("Specified %s already exists",entityName)); } } catch (Exception e) { String message = String.format("Error in adding %s", entityName);
