Fix feature path catch blocks

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 16:01:45 +00:00
parent dcd5c9890b
commit 29fb04d03d
20 changed files with 42 additions and 40 deletions

View File

@@ -154,7 +154,7 @@ export function MarkdownEditor({
if (!imageUrl) throw new Error('Failed to generate image URL');
return imageUrl;
} catch (error) {
} catch (error: unknown) {
console.error('Image upload failed:', error);
throw new Error(error instanceof Error ? error.message : 'Failed to upload image');
}