Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 21, 2023
1 parent 31f5743 commit 1ad968f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/content/guides/wp-cli/07-wp-cli-troubleshoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,17 @@ wp_
```

### After (The Future State)
When running WP-CLI, ”display_errors” will be changed to “stderr” in php.ini, so that errors can be handled separate from the actual command output. Three changes are notable here
When running WP-CLI, ”display_errors” will be changed to “stderr” in php.ini, so that errors can be handled separate from the actual command output. Three changes are notable here:

#### Errors go to STDERR
The obvious and intentional change. With errors going to stderr, it is now possible to capture the output of a WP-CLI command with no extra steps
The obvious and intentional change. With errors going to stderr, it is now possible to capture the output of a WP-CLI command with no extra steps.
```bash
$ PREFIX=$(terminus remote:wp {site}.{env} -- config get table_prefix)
Notice: A Notice. in phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/config-command/src/Config_Command.php(444) : eval()'d code on line 78
Warning: A Warning. in phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/config-command/src/Config_Command.php(444) : eval()'d code on line 79
[notice] Command: {site}.{env} -- wp config get table_prefix [Exit: 0]
$ echo $PREFIX
wp_

```

#### Live errors will display in WP-CLI
Expand Down

0 comments on commit 1ad968f

Please sign in to comment.