From: Dominik Schilling Date: Sun, 10 Feb 2013 10:53:33 +0000 (+0100) Subject: Fix error output if no WordPress install exists X-Git-Tag: v0.9.0~105^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f5f1ff1f38990c8d34f4a6736c585272972a2b1c;p=wvm%2Fwvm.git Fix error output if no WordPress install exists --- diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index 7dbd8637..1daa7ef4 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -233,9 +233,9 @@ class Runner { } if ( !is_readable( ABSPATH . 'wp-load.php' ) ) { - WP_CLI::error( "This does not seem to be a WordPress install.", false ); - WP_CLI::line( "Pass --path=`path/to/wordpress` or run `wp core download`." ); - exit(1); + WP_CLI::error( + "This does not seem to be a WordPress install.\n" . + "Pass --path=`path/to/wordpress` or run `wp core download`." ); } if ( array( 'core', 'config' ) == $this->arguments ) { @@ -310,4 +310,3 @@ class Runner { WP_CLI::run_command( $this->arguments, $this->assoc_args ); } } -