Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Messages: What does Code mean? #2293

Closed
RichardLitt opened this issue Feb 4, 2016 · 5 comments
Closed

Error Messages: What does Code mean? #2293

RichardLitt opened this issue Feb 4, 2016 · 5 comments
Labels
kind/support A question or request for support

Comments

@RichardLitt
Copy link
Member

When using the CLI API, I am frequently getting error messages.

Example:

{
  "Message": "This command can't be called directly. Try one of its subcommands.",
  "Code": 1
}

What does Code mean?
Why are some messages only text (ex: Argument 'root' is required, while some messages formatted like the above?

@RichardLitt RichardLitt added the kind/support A question or request for support label Feb 4, 2016
@whyrusleeping
Copy link
Member

i'm not really sure how all this works to be honest, but i think that the code signifies that the exit status of the cli should be 1

@RichardLitt
Copy link
Member Author

Who would know?

@RichardLitt
Copy link
Member Author

@Kubuxu Do you know?

I feel this might be a duplicate issue - I remember talking about it somewhere other than here.

@whyrusleeping
Copy link
Member

Code 1 signifies that the CLI should return an exit code of 1 (and similarly 0 for code 0)

RichardLitt added a commit that referenced this issue Jun 28, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
RichardLitt added a commit that referenced this issue Jun 28, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
RichardLitt added a commit that referenced this issue Jun 30, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
@RichardLitt
Copy link
Member Author

I know what this means now.

RichardLitt added a commit that referenced this issue Sep 1, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
RichardLitt added a commit that referenced this issue Sep 1, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
RichardLitt added a commit that referenced this issue Sep 1, 2016
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants