OSDN Git Service

use WP_CLI::warning() instead of passing false to WP_CLI::error()
authorscribu <mail@scribu.net>
Sat, 16 Feb 2013 23:59:09 +0000 (01:59 +0200)
committerscribu <mail@scribu.net>
Sun, 17 Feb 2013 02:10:14 +0000 (04:10 +0200)
php/WP_CLI/CommandWithDBObject.php

index 8b25266..773f81d 100644 (file)
@@ -61,7 +61,7 @@ abstract class CommandWithDBObject extends \WP_CLI_Command {
                        \WP_CLI::success( $msg );
                        $status = 0;
                } else {
-                       \WP_CLI::error( $msg, false );
+                       \WP_CLI::warning( $msg );
                        $status = 1;
                }