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
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
Context
review-enrichment/src/sentry.ts:153-164exportscaptureError(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
captureErrorhas zero real callers.captureErrorfromsrc/sentry.ts.Deliverables
captureErrorremoved; 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