Skip to content

Commit f19dc46

Browse files
committed
fix: improve error handling in active project reading
- Added a comment to clarify that errors when reading the active project are intentionally ignored - This change enhances code readability and maintains the existing functionality without introducing new behavior
1 parent 063a293 commit f19dc46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/core/task-manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,9 @@ export class TaskManager {
17991799
if (active?.project_id) {
18001800
activeProjectId = active.project_id;
18011801
}
1802-
} catch {}
1802+
} catch {
1803+
// Ignore errors when reading active project
1804+
}
18031805

18041806
const docsPath = await this.resolveProjectPath(activeProjectId);
18051807
const historyDir = path.join(docsPath, 'history');

0 commit comments

Comments
 (0)