Skip to content

Commit 31fa5c5

Browse files
SilverFireCookiesEater
authored andcommitted
Ensure Exception is an exception
1 parent 1c5a5f2 commit 31fa5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SentryTarget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function export()
131131
unset($text['tags']);
132132
}
133133

134-
if (isset($text['exception'])) {
134+
if (isset($text['exception']) && $text['exception'] instanceof Throwable) {
135135
$data['exception'] = $text['exception'];
136136
unset($text['exception']);
137137
}

0 commit comments

Comments
 (0)