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
This commit is contained in:
AlexKucera committed 2025-10-24 15:38:45 +02:00
1 parent 58575c1880
commit 5e77136370
1 file changed
+1 -1
+1 -1
View File
@@ -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<CommentaryStyle, 'custom'>];
}