diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-30T14·06+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-30T15·53+0000 |
commit | 77546d734efe704f52a4c89b5159cb2d98d5a8aa (patch) | |
tree | 6f2e50156f98bbc78fe33d4759badfeeb060cecd /tvix/castore/src/import/fs.rs | |
parent | 4c5c810c6fe998e84a00c1bfcb3ffde8a9646e7e (diff) |
refactor(tvix/castore): remove IngestionEntry::Unknown r/8047
We shouldn't try to represent non-representable things in the ingestion entries (only to throw an error). It's cleaner to throw the error directly in the part producing the stream. Change-Id: I6b6f6d8c2f677425210142a39f1829ddeefec812 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11556 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: firefly <firefly@firefly.nu>
Diffstat (limited to 'tvix/castore/src/import/fs.rs')
-rw-r--r-- | tvix/castore/src/import/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/castore/src/import/fs.rs b/tvix/castore/src/import/fs.rs index 13e4a78cb799..6eab245f5500 100644 --- a/tvix/castore/src/import/fs.rs +++ b/tvix/castore/src/import/fs.rs @@ -130,7 +130,7 @@ where digest, }) } else { - Ok(IngestionEntry::Unknown { path, file_type }) + return Err(Error::UnsupportedFileType(path, file_type)); } } |