Skip to content

wp user reset-password always shows Success #258

@johnbillion

Description

@johnbillion

Bug Report

Describe the current, buggy behavior

The wp user reset-password always shows a Success message, even when provided with an invalid user name.

Describe how other contributors can replicate this bug

  • Run wp user reset-password invalid-user-name
  • Observe that a Warning message is shown about the invalid user name
  • Observe that the Success message is still shown and the exit code is 0

Describe what you would expect as the correct outcome

I would expect this command to exit with 1 and to display an appropriate error message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions