diff options
author | Florian Klink <flokli@flokli.de> | 2023-02-12T10·39+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-03-06T15·32+0000 |
commit | 786854713c3d5d80cd8ededc857151ac65b54dbd (patch) | |
tree | 940706b4d184e91b9725861bab1b3010bfe2a841 /tvix/store/src | |
parent | 6019c75deb7868f43b9ad8449fe2d00532b07a54 (diff) |
feat(tvix/store): add errors r/5891
Change-Id: I7be0a4eaa29840e1a3329bccb791975de22828ef Reviewed-on: https://cl.tvl.fyi/c/depot/+/8085 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src')
-rw-r--r-- | tvix/store/src/errors.rs | 11 | ||||
-rw-r--r-- | tvix/store/src/lib.rs | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tvix/store/src/errors.rs b/tvix/store/src/errors.rs new file mode 100644 index 000000000000..003c619b7213 --- /dev/null +++ b/tvix/store/src/errors.rs @@ -0,0 +1,11 @@ +use thiserror::Error; + +/// Errors related to communication with the store. +#[derive(Debug, Error)] +pub enum Error { + #[error("invalid request: {0}")] + InvalidRequest(String), + + #[error("internal storage error: {0}")] + StorageError(String), +} diff --git a/tvix/store/src/lib.rs b/tvix/store/src/lib.rs index a9e2382eaa1e..2c8e8610daf6 100644 --- a/tvix/store/src/lib.rs +++ b/tvix/store/src/lib.rs @@ -1,9 +1,13 @@ pub mod client; + +mod errors; + pub mod proto; pub mod dummy_blob_service; pub mod sled_directory_service; pub mod sled_path_info_service; +pub use errors::Error; mod nar; |