Skip to content

chore(rees): remove dead captureError export in src/sentry.ts #6253

Description

@JSONbored

Context

review-enrichment/src/sentry.ts:153-164 exports captureError(error, context), a generic Sentry-capture wrapper. A repo-wide search (src + test) finds zero imports or calls anywhere. Every real call site uses one of the more specific siblings instead: captureRouteError, captureUnhandledError, captureSourcemapUploadFailure, captureAnalyzerDegradation.

Requirements

  • Confirm via a fresh repo-wide search that captureError has zero real callers.
  • Remove captureError from src/sentry.ts.

Deliverables

  • captureError removed; existing tests for the other capture-* functions continue passing unchanged.

Expected Outcome

No orphaned generic error-capture helper remains alongside its more specific, actually-used siblings.

Links & Resources

  • review-enrichment/src/sentry.ts:153-164

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions