stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vimuth Fernando <vim...@wso2.com>
Subject Re: [jira] [Comment Edited] (STRATOS-491) Exception shown in the CLI instead of the proper message
Date Tue, 04 Mar 2014 16:24:26 GMT
Udara aiiya asked me to open this. The idea was that there should be a
message such as "There are no subscribed cartridges" rather than showing
the full error message.


On Tue, Mar 4, 2014 at 8:29 PM, Nirmal Fernando (JIRA) <jira@apache.org>wrote:

>
>     [
> 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)
>



-- 
Thanks,
Vimuth Dinuka Fernando

Software Engineering Intern,
WSO2 Inc.
Mobile - 0777559890

Mime
View raw message