This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
unnecessary msg "Error: exit status 1" when a Tanzu CLI command failed #44
Labels
area/cli
area/core-cli
area/plugin
kind/bug
PR/Issue related to a bug
migration/imported
priority/important-soon
Milestone
Bug description
The following tanzu command prints
Error: accepts 1 arg(s), received 0
and the help content, but alsoError: exit status 1
at the end. Seems there is no need to printError: exit status 1
. I also noticed whentanzu management-cluster create ...
prints the help context when its execution failed.For example, 'kubectl get' doesn't print the exit status.
Affected product area (please put an X in all that apply)
[ ] APIs
[ ] Addons
[X] CLI
[ ] Docs
[ ] Installation
[ ] Plugin
[ ] Security
[ ] Test and Release
[ ] User Experience
Expected behavior
Steps to reproduce the bug
Version (include the SHA if the version is not obvious)
$ tanzu version
version: v1.3.0-rc.2
buildDate: 2021-02-26
sha: bc3e781-dirty
Environment where the bug was observed (cloud, OS, etc)
Relevant Debug Output (Logs, manifests, etc)
Collated Context
Context from 2021-03-10 07:23:20
User: jessehu
Here is the log when
tanzu management-cluster create ...
failed and it prints the usage content after the detail error msg. It's not expected to print the usage content in this command failure case.The text was updated successfully, but these errors were encountered: