Skip to content

Commit 9946f12

Browse files
authored
Merge pull request #81 from honeybadger-io/silence-breadcrumbs-errors
Silence any errors from breadcrumbs
2 parents b1b3825 + 3258257 commit 9946f12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Breadcrumbs/Breadcrumb.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public function handle($event)
2424
return;
2525
}
2626

27-
$this->handleEvent($event);
27+
try {
28+
$this->handleEvent($event);
29+
} catch (\Throwable $e) {
30+
// Do nothing; we shouldn't crash the user's app for this.
31+
}
2832
}
2933
}

0 commit comments

Comments
 (0)