diff options
Diffstat (limited to 'tvix/castore/src/proto/mod.rs')
-rw-r--r-- | tvix/castore/src/proto/mod.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tvix/castore/src/proto/mod.rs b/tvix/castore/src/proto/mod.rs index 67f7b2fa72a2..8bc74b412676 100644 --- a/tvix/castore/src/proto/mod.rs +++ b/tvix/castore/src/proto/mod.rs @@ -223,10 +223,12 @@ impl Node { let name: PathComponent = n.name.try_into().map_err(DirectoryError::InvalidName)?; let node = crate::Node::Symlink { - target: n - .target - .try_into() - .map_err(|e| DirectoryError::InvalidNode(name.clone(), e))?, + target: n.target.try_into().map_err(|e| { + DirectoryError::InvalidNode( + name.clone(), + crate::ValidateNodeError::InvalidSymlinkTarget(e), + ) + })?, }; Ok((name, node)) |