Skip to content

Commit a682840

Browse files
committed
Merge branch 'rlamb/fix-sampling-over-matching-for-empty-records' of github.com:launchdarkly/observability-sdk into rlamb/fix-sampling-over-matching-for-empty-records
2 parents 6ba82d2 + 630d279 commit a682840

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/highlight-run/src/sdk/observe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export class ObserveSDK implements Observe {
254254
source?: string,
255255
type?: ErrorMessageType,
256256
) {
257+
error = error || new Error('Unknown error')
257258
if (error instanceof Error && error.cause) {
258259
payload = {
259260
...payload,

0 commit comments

Comments
 (0)