Github user prabathabey commented on a diff in the pull request: https://github.com/apache/stratos/pull/295#discussion_r35574034 --- Diff: components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java --- @@ -146,16 +169,31 @@ public static void updateCartridge(CartridgeBean cartridgeDefinition) throws Res cartridgeDefinition.getType())); } } catch (CloudControllerServiceCartridgeDefinitionNotExistsExceptionException e) { - String msg = "No cartridge definition exists with this definition.Please use the POST method to add the cartridge"; + String msg = "Could not add cartridge"; log.error(msg, e); throw new RestAPIException(msg); - } catch (Exception e) { - String msg = "Could not update cartridge " + e.getLocalizedMessage(); + } catch (CloudControllerServiceInvalidCartridgeDefinitionExceptionException e) { + String msg = "Could not add cartridge"; --- End diff -- Same goes here as well.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---