Skip to content

Commit

Permalink
Merge pull request wp-cli#5897 from christianwach/warning
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Feb 6, 2024
2 parents 93f5880 + 711b989 commit 9a10827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ public static function error( $message, $exit = true ) {

if ( $return_code ) {
if ( self::$capture_exit ) {
throw new ExitException( null, $return_code );
throw new ExitException( '', $return_code );
}
exit( $return_code );
}
Expand All @@ -935,7 +935,7 @@ public static function error( $message, $exit = true ) {
*/
public static function halt( $return_code ) {
if ( self::$capture_exit ) {
throw new ExitException( null, $return_code );
throw new ExitException( '', $return_code );
}
exit( $return_code );
}
Expand Down

0 comments on commit 9a10827

Please sign in to comment.