mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 06:11:12 -05:00
Continue console cleanup
This commit is contained in:
@@ -35,6 +35,8 @@ import { getCloudflareImageUrl } from '@/lib/cloudflareImageUtils';
|
||||
import { useAutoSave } from '@/hooks/useAutoSave';
|
||||
import { CheckCircle2, Loader2, AlertCircle } from 'lucide-react';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
import { logger } from '@/lib/logger';
|
||||
|
||||
interface MarkdownEditorProps {
|
||||
value: string;
|
||||
@@ -155,7 +157,7 @@ export function MarkdownEditor({
|
||||
|
||||
return imageUrl;
|
||||
} catch (error: unknown) {
|
||||
console.error('Image upload failed:', error);
|
||||
logger.error('Image upload failed', { error: getErrorMessage(error) });
|
||||
throw new Error(error instanceof Error ? error.message : 'Failed to upload image');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user