Skip to content

Commit

Permalink
Simplify formatting of exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Jan 3, 2018
1 parent 2eeae93 commit 395ece9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/WP_Queue/Connections/DatabaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ protected function datetime( $offset = 0 ) {
* @return string
*/
protected function format_exception( Exception $exception ) {
$class = get_class( $exception );
$string = $class;
$string = get_class( $exception );

if ( ! empty( $exception->getMessage() ) ) {
$string .= " : {$exception->getMessage()}";
Expand Down

0 comments on commit 395ece9

Please sign in to comment.