mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
fix(reference): separate local filesystem diagnostics from graph commitments
This commit is contained in:
1 parent
b165b0e830
commit
cae03361cf
12 files changed
+220
-38
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user