From 307675f5e7ae2b84efc51444e46c6077e4a5d055 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 12 Dec 2023 15:57:08 +0200 Subject: fix(tvix/glue/tvix_store_io): don't unwrap ingest_path errors Fixes b/344. Change-Id: I1446726e3be3a8fc20801d466a964c4d6b8cbc02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10331 Autosubmit: flokli Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/glue/src/tvix_store_io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/glue/src/tvix_store_io.rs b/tvix/glue/src/tvix_store_io.rs index 9073aeeb3e..31a472fed2 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) = -- cgit 1.4.1