Skip to content

Commit

Permalink
fix the set_error_message logic (#22509)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani authored Jan 26, 2022
1 parent a12a061 commit e164982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix method logic
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function set_main_error_code( $code ) {
* @return void
*/
private function set_main_error_message( $message, $code ) {
$this->main_error_message = ( 'process_failed' === $code && $this->main_error_code ? $this->main_error_code : $message );
$this->main_error_message = ( 'process_failed' === $code && $this->main_error_message ? $this->main_error_message : $message );
}

/**
Expand Down

0 comments on commit e164982

Please sign in to comment.