mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 03:45:39 +00:00
fix(reference): keep unresolved root and Git directory reads as failures
This commit is contained in:
1 parent
bbc75545ec
commit
1ddb32956a
4 files changed
+58
-7
No files matched your search
@@ -91,6 +91,13 @@ const readSource = async (
|
||||
bytesRead: state.bytesRead,
|
||||
limitations: [PATH_RACE_LIMITATION],
|
||||
};
|
||||
if (traversal.ok && state.rootFailure?.code === "io")
|
||||
return err({
|
||||
tag: "reference-source-reader",
|
||||
code: "io",
|
||||
message: state.rootFailure.message,
|
||||
partial: read,
|
||||
});
|
||||
return traversal.ok ? ok(read) : err({ ...traversal.error, partial: read });
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user