From f5f1ff1f38990c8d34f4a6736c585272972a2b1c Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 10 Feb 2013 11:53:33 +0100 Subject: [PATCH] Fix error output if no WordPress install exists --- php/WP_CLI/Runner.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ); } } - -- 2.11.0