diff options
Diffstat (limited to 'tvix/castore/src/errors.rs')
-rw-r--r-- | tvix/castore/src/errors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/castore/src/errors.rs b/tvix/castore/src/errors.rs index 3b23f972b045..9f596afd4e26 100644 --- a/tvix/castore/src/errors.rs +++ b/tvix/castore/src/errors.rs @@ -34,6 +34,12 @@ impl From<Error> for Status { } } +impl From<crate::channel::Error> for Error { + fn from(value: crate::channel::Error) -> Self { + Self::StorageError(value.to_string()) + } +} + // TODO: this should probably go somewhere else? impl From<Error> for std::io::Error { fn from(value: Error) -> Self { |