Removes unnecessary error notification
The Notice was removed because the error is already being logged to the console and re-thrown.
This commit is contained in:
1 file changed
-1
@@ -50,7 +50,6 @@ export class AnthropicClient {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error generating prompts:', error);
|
console.error('Error generating prompts:', error);
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
new Notice(`Failed to generate prompts: ${error.message}`);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
throw new Error('Unknown error occurred while generating prompts');
|
throw new Error('Unknown error occurred while generating prompts');
|
||||||
|
|||||||
Reference in new issue
Block a user