Skip to content

"Error Connecting To Database" HTML output#291

Merged
scribu merged 5 commits intomasterfrom
fix-291
Feb 8, 2013
Merged

"Error Connecting To Database" HTML output#291
scribu merged 5 commits intomasterfrom
fix-291

Conversation

@scribu
Copy link
Member

@scribu scribu commented Feb 7, 2013

Steps to reproduce:

  • have a WP install with a wp-config.php file
  • no database created at all
  • run wp

You'll get the error message embeded in a ton of useless HTML, instead of a nice WP_CLI::error() message.

@scribu
Copy link
Member Author

scribu commented Feb 7, 2013

Even worse, wp db create won't work either.

@scribu
Copy link
Member Author

scribu commented Feb 7, 2013

Should test both multisite and single site, since they have different loading code.

The more precise assertions expose several buggy tests.

Also reverts WP_CLI::error() second parameter to $label, since sending
the first line to STDERR and subsequent ones to STDOUT is confusing.

If you want to have a multiline error message, just insert \n
characters.
scribu pushed a commit that referenced this pull request Feb 8, 2013
"Error Connecting To Database" HTML output
@scribu scribu merged commit 6fcb238 into master Feb 8, 2013
@scribu scribu deleted the fix-291 branch February 8, 2013 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants