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:
1 file changed
+1
-1
@@ -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'>];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user