Capture git http error to Sentry

This commit is contained in:
Alex Gleason committed 2025-12-24 19:09:01 -06:00
1 parent ddc59a74ff
commit bc0eec3839
1 file changed
+2 -1
@@ -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) {