⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@Dobrunia
Copy link
Member

Summary

Two small fixes in the JavaScript catcher:

  1. Validation — optional context
    validateContext() was treating missing/undefined context as invalid and logging "Context must be an object". Context is optional in HawkInitialSettings and in setContext(context?: EventContext), so undefined should pass validation.
    Updated the check to only fail when context is present but not an object (context && !Sanitizer.isObject(context)), so undefined is accepted.
    telegram-cloud-photo-size-2-5467629729184681731-y

  2. Breadcrumbs — fetch failure
    When a fetch request fails (e.g. network error), the breadcrumb in the catch block now explicitly sets statusCode: 0 in data, so the UI can consistently treat failed requests (e.g. for coloring).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants