Commit 8070c89
authored
fix: support recordError with falsy Error (#253)
## Summary
Support calling `LDObserve.recordError` with falsy value without causing
an error.
## How did you test this change?
CI
## Are there any deployment considerations?
no
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Ensure `recordError` handles nullish values by defaulting to `new
Error('Unknown error')`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d63bee4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 8ed78e1 commit 8070c89
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
0 commit comments