71d3308401
Adds an additional message when the REST API returns 401 errors to the CLI, so that people properly include the `--user` flag. To test: * Run a command without a valid user ID (`wp wc product list`). * See the additional error message. * Run a command with a valid user ID, but cause another error, like a product not existing. (`wp wc product get 124124124 --user=1`). * See that the extra error message is not displayed. |
||
---|---|---|
.. | ||
class-wc-cli-rest-command.php | ||
class-wc-cli-runner.php | ||
class-wc-cli-tool-command.php | ||
class-wc-cli-update-command.php |