From 4e258d39bd7cec1a1fc9b4470d504409c6c9e9be Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Mon, 22 May 2017 13:30:59 -0700 Subject: [PATCH] Clarify logging strings --- cli.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.php b/cli.php index a4d1a45..d96720a 100644 --- a/cli.php +++ b/cli.php @@ -70,7 +70,7 @@ function __invoke( $args, $assoc_args ) if ( $result ) { WP_CLI::success( $filename ); } else { - WP_CLI::success( "Movefile wasn't overwrited." ); + WP_CLI::success( "Movefile wasn't overwritten." ); } } } @@ -83,7 +83,7 @@ private function create_file( $filename, $contents, $force ) if ( $should_write_file ) { $wp_filesystem->mkdir( dirname( $filename ) ); if ( ! $wp_filesystem->put_contents( $filename, $contents ) ) { - WP_CLI::error( "Error creating file: $filename" ); + WP_CLI::error( "Could not create file: $filename" ); } return true; }