Skip to content

Commit db15ad5

Browse files
Errors can be located in different places
1 parent 10391c0 commit db15ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
if ( 0 === $ret->return_code ) {
8282
WP_CLI::success( "Created {$archive_file}" );
8383
} else {
84-
WP_CLI::error( $ret->stderr );
84+
$error = $ret->stderr ? $ret->stderr : $ret->stdout;
85+
WP_CLI::error( $error );
8586
}
8687
}
8788

0 commit comments

Comments
 (0)