From 5e77136370160685a0d9e4c221fa2778bb29876b Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 15:38:45 +0200 Subject: [PATCH] Improves custom commentary error message clarity Enhances error messaging for custom commentary style to provide more specific guidance Clarifies that a custom prompt is required when selecting custom commentary style, making the error message more informative and user-friendly --- api/anthropicClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/anthropicClient.ts b/api/anthropicClient.ts index bbf0ad6..94fca0f 100644 --- a/api/anthropicClient.ts +++ b/api/anthropicClient.ts @@ -67,7 +67,7 @@ export class AnthropicClient { if (commentaryStyle === 'custom' && customCommentaryPrompt) { commentaryPrompt = customCommentaryPrompt; } else if (commentaryStyle === 'custom') { - throw new Error('Custom commentary prompt is required when using custom style'); + throw new Error('Custom commentary style requires a custom prompt. Please provide customCommentaryPrompt.'); } else { commentaryPrompt = COMMENTARY_PRESETS[commentaryStyle as Exclude]; }