From bc0eec383963e2b8846db1fd7a0edf16babae66c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 24 Dec 2025 19:09:01 -0600 Subject: [PATCH] Capture git http error to Sentry --- src/components/git-sync/steps/SyncStepError.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/git-sync/steps/SyncStepError.tsx b/src/components/git-sync/steps/SyncStepError.tsx index f5645345..1fd27d04 100644 --- a/src/components/git-sync/steps/SyncStepError.tsx +++ b/src/components/git-sync/steps/SyncStepError.tsx @@ -3,6 +3,7 @@ import { X, ArrowDown, ArrowUp } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Alert, AlertDescription } from '@/components/ui/alert'; import { Link } from 'react-router-dom'; +import { getSentryInstance } from '@/lib/sentry'; interface SyncStepErrorProps { error: Error; @@ -127,7 +128,7 @@ export function SyncStepError({ error, onDismiss, onForcePull, onForcePush, onPu if (remoteUrl.protocol === 'nostr:') { // This should never happen - // TODO: log to Sentry + getSentryInstance()?.captureException(error); message = `There was an HTTP (${error.data.statusCode}) error communicating with Nostr Git servers.` } else if (remoteUrl.protocol !== 'http:' && remoteUrl.protocol !== 'https:') { switch (error.data.statusCode) {