Commit 8db49a0
committed
fix: Prevent core Client methods from raising exceptions
The goal is to ensure that our client doesn't cause a panic in an
end-user application. This change updates
capture/set/set_once/group_identify/alias to swallow and log any
exceptions that occur. Note that this won't prevent errors from
propagating via the `on_error` callback if an error occurs while
processing the queue.1 parent d76bfe6 commit 8db49a0
2 files changed
+50
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
102 | 127 | | |
103 | 128 | | |
104 | 129 | | |
| |||
481 | 506 | | |
482 | 507 | | |
483 | 508 | | |
| 509 | + | |
484 | 510 | | |
485 | 511 | | |
486 | 512 | | |
| |||
657 | 683 | | |
658 | 684 | | |
659 | 685 | | |
| 686 | + | |
660 | 687 | | |
661 | 688 | | |
662 | 689 | | |
| |||
716 | 743 | | |
717 | 744 | | |
718 | 745 | | |
| 746 | + | |
719 | 747 | | |
720 | 748 | | |
721 | 749 | | |
| |||
759 | 787 | | |
760 | 788 | | |
761 | 789 | | |
| 790 | + | |
762 | 791 | | |
763 | 792 | | |
764 | 793 | | |
| |||
815 | 844 | | |
816 | 845 | | |
817 | 846 | | |
| 847 | + | |
818 | 848 | | |
819 | 849 | | |
820 | 850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2423 | 2423 | | |
2424 | 2424 | | |
2425 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
0 commit comments