Tighten failed-entry comments and docs

This commit is contained in:
German Khokhlov committed 2026-11-06 20:20:11 +04:00
1 parent e1ea524b68
commit 8917eebe12
7 files changed
+11 -23

No files matched your search

+2 -3
View File
@@ -229,9 +229,8 @@ export function createIngestion({
if (layerState._enabled && token === layerState._lifecycleToken) {
layerState._lastError = error.message;
console.warn('[Data:RocketLaunches] Fetch error:', error);
// Without one usable index there is no mode to enter: report the
// failure so the manager fails the enable closed and Context rolls
// back. A refresh after a loaded index keeps its records instead.
// No index yet: fail the enable so Context rolls back.
// After a loaded index, a failed refresh keeps its records.
if (layerState._lastUpdate === null) {
parts.panel.renderMissionRoster();
throw error;