about summary refs log tree commit diff
path: root/tvix/store/src/errors.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-25T21·17+0100
committerclbot <clbot@tvl.fyi>2023-03-27T08·48+0000
commitb919f297528b74d9eab95fe93aa87541d7dffc53 (patch)
treec5c6df924486a01cfb24e49a06beda7ead7da13f /tvix/store/src/errors.rs
parent93f3964cbcbeb859a91714671bf0b87fb3b82a06 (diff)
feat(tvix/store/pathinfosvc): add gRPC client r/6043
Change-Id: Ie8e205c691bd11db99fcf097357c1e49161c6e19
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8349
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/errors.rs')
-rw-r--r--tvix/store/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/store/src/errors.rs b/tvix/store/src/errors.rs
index 36a4320cb3e6..3b23f972b045 100644
--- a/tvix/store/src/errors.rs
+++ b/tvix/store/src/errors.rs
@@ -1,5 +1,6 @@
 use std::sync::PoisonError;
 use thiserror::Error;
+use tokio::task::JoinError;
 use tonic::Status;
 
 /// Errors related to communication with the store.
@@ -18,6 +19,12 @@ impl<T> From<PoisonError<T>> for Error {
     }
 }
 
+impl From<JoinError> for Error {
+    fn from(value: JoinError) -> Self {
+        Error::StorageError(value.to_string())
+    }
+}
+
 impl From<Error> for Status {
     fn from(value: Error) -> Self {
         match value {