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

Remove duplicate messages and unwanted usage messages when an Mixer error happens #66

Merged
merged 1 commit into from
Jan 9, 2018

Commits on Jan 8, 2018

  1. mixer: reduce noise when commands fail

    Only print errors once, not twice. Do not print usage information
    unless the command was called with invalid arguments.
    
    Because cobra already print its own errors, don't print them again in
    Execute function, just ensure we get the right exit code. Mixer errors
    will be handled by our code, instead of passing the errors to cobra
    and then later get them back. That way no usage is printed.
    
    Two helper functions were added fail/failf to perform Print+Exit.
    
    Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
    cmarcelo committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    3cb8e3c View commit details
    Browse the repository at this point in the history