Skip to content

Commit

Permalink
Merge pull request #62 from pavelzotikov/fix/exception-title-usage
Browse files Browse the repository at this point in the history
Fix empty title issue by using exception class name
  • Loading branch information
neSpecc authored Oct 18, 2024
2 parents 71ba62c + bd21459 commit c5cfdb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PHP errors Catcher module for Hawk.so",
"keywords": ["hawk", "php", "error", "catcher"],
"type": "library",
"version": "2.2.3",
"version": "2.2.4",
"license": "MIT",
"require": {
"ext-curl": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/EventPayloadBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function create(array $data): EventPayload
$exception = $data['exception'];
$stacktrace = $this->stacktraceFrameBuilder->buildStack($exception);

$eventPayload->setTitle($exception->getMessage());
$eventPayload->setTitle($exception->getMessage() ?: get_class($exception));
} else {
$stacktrace = debug_backtrace();
}
Expand Down

0 comments on commit c5cfdb2

Please sign in to comment.