diff options
Diffstat (limited to 'tvix/derivation/src/validate.rs')
-rw-r--r-- | tvix/derivation/src/validate.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tvix/derivation/src/validate.rs b/tvix/derivation/src/validate.rs index 65809ef5e5f3..a2143509011b 100644 --- a/tvix/derivation/src/validate.rs +++ b/tvix/derivation/src/validate.rs @@ -39,11 +39,8 @@ impl Derivation { } if let Err(e) = output.validate() { - return Err(DerivationError::InvalidOutputPath( - output_name.to_string(), - e, - )); - }; + return Err(DerivationError::InvalidOutput(output_name.to_string(), e)); + } } // Validate all input_derivations |