Removes duplicate error notification in cleanup service
Simplifies error handling by allowing the command layer to manage user feedback Prevents potential redundant error notices and improves separation of concerns
This commit is contained in:
1 file changed
+1
-2
@@ -91,8 +91,7 @@ export class CleanupService {
|
||||
|
||||
return result;
|
||||
} catch (error) {
|
||||
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
||||
new Notice(`Text cleanup failed: ${errorMessage}`);
|
||||
// Let the command layer handle user feedback to avoid duplicate notices
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user