Commit d2ae868
fix: call onError in init function (#368)
* AMP-32671 read in functions from options arg to amplitude client options
* AMP-32671 call onError from args in amplitude client initialization
- the client's options may not have been initialized when an error occurs, so call onError from the args to make sure it's invoked regardless of when the error is thrown
* AMP-32571 add unit test for onError
Co-authored-by: AJ Horst <[email protected]>1 parent 87b42c1 commit d2ae868
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
447 | | - | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
449 | 452 | | |
450 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
827 | 838 | | |
828 | 839 | | |
829 | 840 | | |
| |||
0 commit comments