Skip to content

Commit c5cfdb2

Browse files
authored
Merge pull request #62 from pavelzotikov/fix/exception-title-usage
Fix empty title issue by using exception class name
2 parents 71ba62c + bd21459 commit c5cfdb2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "PHP errors Catcher module for Hawk.so",
44
"keywords": ["hawk", "php", "error", "catcher"],
55
"type": "library",
6-
"version": "2.2.3",
6+
"version": "2.2.4",
77
"license": "MIT",
88
"require": {
99
"ext-curl": "*",

src/EventPayloadBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function create(array $data): EventPayload
7171
$exception = $data['exception'];
7272
$stacktrace = $this->stacktraceFrameBuilder->buildStack($exception);
7373

74-
$eventPayload->setTitle($exception->getMessage());
74+
$eventPayload->setTitle($exception->getMessage() ?: get_class($exception));
7575
} else {
7676
$stacktrace = debug_backtrace();
7777
}

0 commit comments

Comments
 (0)