fix(reference): separate local filesystem diagnostics from graph commitments

This commit is contained in:
morluto committed 2026-10-24 03:11:07 +08:00
1 parent b165b0e830
commit cae03361cf
12 files changed
+220 -38

No files matched your search

+10 -3
View File
@@ -295,11 +295,18 @@ const readStableFileEntry = async (
"File is no longer a regular file",
safeSize(expected.size),
);
const message = filesystemFailureDetail(
const detail = filesystemFailureDetail(
cause,
"File could not be read safely",
);
if (message === undefined) throw cause;
return entryFailure(path, "file", "io", message, safeSize(expected.size));
if (detail === undefined) throw cause;
return entryFailure(
path,
"file",
"io",
detail.message,
safeSize(expected.size),
detail.localDiagnostic,
);
}
};