Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 280931044F for ; Tue, 4 Mar 2014 14:59:45 +0000 (UTC) Received: (qmail 23161 invoked by uid 500); 4 Mar 2014 14:59:44 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 22974 invoked by uid 500); 4 Mar 2014 14:59:42 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 22967 invoked by uid 99); 4 Mar 2014 14:59:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 14:59:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Mar 2014 14:59:41 +0000 Received: (qmail 20324 invoked by uid 99); 4 Mar 2014 14:59:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 14:59:20 +0000 Date: Tue, 4 Mar 2014 14:59:20 +0000 (UTC) From: "Nirmal Fernando (JIRA)" To: dev@stratos.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (STRATOS-491) Exception shown in the CLI instead of the proper message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STRATOS-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919484#comment-13919484 ] Nirmal Fernando edited comment on STRATOS-491 at 3/4/14 2:57 PM: ----------------------------------------------------------------- Hi Vimuth, Why do you think this as an issue? Don't you think that back-end should send an error instead of an empty list of Cartridges in that case? I felt, it's good to send an error message, for following reason. IMO CLI shouldn't check anything and act accordingly, but should simply delegate the request to REST API and then delegate the response back to the user. But others may have other thoughts. Let's discuss here. was (Author: nirmal): Hi Vimuth, Why do you think this as an issue? Don't you think that back-end should send an error instead of an empty list of Cartridges in that case? I felt, it's good to send an error message, for two reasons. IMO CLI shouldn't check anything and act accordingly, but should simply delegate the request to REST API and then delegate the response back to the user. But others may have other thoughts. Let's discuss here. > Exception shown in the CLI instead of the proper message > -------------------------------------------------------- > > Key: STRATOS-491 > URL: https://issues.apache.org/jira/browse/STRATOS-491 > Project: Stratos > Issue Type: Bug > Components: CLI > Affects Versions: 4.0.0 Alpha > Reporter: Vimuth > Priority: Minor > > In the "list-subscribed-cartridges" command [errorCode= 400, errorMessage= Cannot find any subscribed Cartridge, matching the given string: null] is shown when there are no subscribed cartridges -- This message was sent by Atlassian JIRA (v6.2#6252)