about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-12T13·57+0200
committerclbot <clbot@tvl.fyi>2023-12-12T18·07+0000
commit307675f5e7ae2b84efc51444e46c6077e4a5d055 (patch)
tree57fc3c39a4650e1fbcfc29977e9116da093b4c72
parent81ef26ba3f5e03b72bfcf6d02b69583d658bc157 (diff)
fix(tvix/glue/tvix_store_io): don't unwrap ingest_path errors r/7210
Fixes b/344.

Change-Id: I1446726e3be3a8fc20801d466a964c4d6b8cbc02
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10331
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
-rw-r--r--tvix/glue/src/tvix_store_io.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/glue/src/tvix_store_io.rs b/tvix/glue/src/tvix_store_io.rs
index 9073aeeb3ebb..31a472fed21c 100644
--- a/tvix/glue/src/tvix_store_io.rs
+++ b/tvix/glue/src/tvix_store_io.rs
@@ -311,7 +311,7 @@ async fn import_path_with_pathinfo(
     // Call [import::ingest_path], which will walk over the given path and return a root_node.
     let root_node = import::ingest_path(blob_service.clone(), directory_service.clone(), path)
         .await
-        .expect("error during import_path");
+        .map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
 
     // Render the NAR.
     let (nar_size, nar_sha256) =