Skip to content

Commit c643653

Browse files
committed
Add an else block
1 parent 7d3ddb8 commit c643653

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DB_Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ public function query( $args, $assoc_args ) {
526526
$output_lines = explode( "\n", trim( $stdout ) );
527527
$affected_rows = (int) trim( end( $output_lines ) );
528528
WP_CLI::success( "Query succeeded. Rows affected: {$affected_rows}" );
529+
} else {
530+
WP_CLI::line( $stdout );
529531
}
530532
}
531533

0 commit comments

Comments
 (0)