Skip to content

Commit

Permalink
Fixes export log status in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dsawardekar committed May 8, 2024
1 parent 656b9fd commit 2ff418d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/classes/CatalogCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ public function export( $args = [], $opts = [] ) {

if ( is_wp_error( $result ) ) {
\WP_CLI::error( $result->get_error_message() );
} else if ( ! $result['success'] ) {
\WP_CLI::error( $result['message'] );
} else {
\WP_CLI::success( $result['message'] );
}
Expand Down

0 comments on commit 2ff418d

Please sign in to comment.