Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

CLI prints error message to stdout #3104

Open
marckhouzam opened this issue Aug 9, 2022 · 0 comments
Open

CLI prints error message to stdout #3104

marckhouzam opened this issue Aug 9, 2022 · 0 comments
Labels
area/cli area/plugin kind/bug PR/Issue related to a bug

Comments

@marckhouzam
Copy link
Contributor

marckhouzam commented Aug 9, 2022

Bug description

When a CLI command fails, it prints the error message to stdout when it probably should print it to stderr.

Affected product area (please put an X in all that apply)

  • (x) CLI

Expected behavior

Error messages should be printed to stderr

Steps to reproduce the bug

# Error from native command
$ tanzu plugin delete
Error: must provide plugin name as positional argument

✖  must provide plugin name as positional argument

# Redirect stderr from native cmd, final error is still seen on stdout
$tanzu plugin delete 2> /dev/null

✖  must provide plugin name as positional argument

Version (include the SHA if the version is not obvious)

Latest main branch: f297f62

Environment where the bug was observed (cloud, OS, etc)

Locally

@marckhouzam marckhouzam added kind/bug PR/Issue related to a bug needs-triage Indicates an issue or PR needs to be triaged labels Aug 9, 2022
@codegold79 codegold79 added area/cli area/plugin area/core-cli and removed needs-triage Indicates an issue or PR needs to be triaged area/core-cli labels Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli area/plugin kind/bug PR/Issue related to a bug
Projects
None yet
Development

No branches or pull requests

2 participants