about summary refs log tree commit diff
path: root/tvix/derivation
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-26T15·54+0100
committerflokli <flokli@flokli.de>2023-01-26T16·30+0000
commit54b4fb8b16c3fee070bc4bc914ed487940a4546f (patch)
tree73cea3c2971873a59f904f72ce867a452b1a819b /tvix/derivation
parent2eae1904e01c8333d4fa7db480ff804891e2d1b6 (diff)
refactor(tvix/derivation): align error messages with rust style r/5762
Change-Id: I9ccd4c043bdddefee98a2c0b3d6eb7d9cb53c454
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7935
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/derivation')
-rw-r--r--tvix/derivation/src/errors.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/tvix/derivation/src/errors.rs b/tvix/derivation/src/errors.rs
index 6942967e1d23..5930c84685b4 100644
--- a/tvix/derivation/src/errors.rs
+++ b/tvix/derivation/src/errors.rs
@@ -5,40 +5,40 @@ use tvix_store::store_path::ParseStorePathError;
 #[derive(Debug, Error)]
 pub enum DerivationError {
     // outputs
-    #[error("No outputs defined.")]
+    #[error("no outputs defined")]
     NoOutputs(),
-    #[error("Invalid output name: {0}.")]
+    #[error("invalid output name: {0}")]
     InvalidOutputName(String),
-    #[error("Encountered fixed-output derivation, but more than 1 output in total.")]
+    #[error("encountered fixed-output derivation, but more than 1 output in total")]
     MoreThanOneOutputButFixed(),
-    #[error("Invalid output name for fixed-output derivation: {0}.")]
+    #[error("invalid output name for fixed-output derivation: {0}")]
     InvalidOutputNameForFixed(String),
-    #[error("Unable to validate output {0}: {1}.")]
+    #[error("unable to validate output {0}: {1}")]
     InvalidOutput(String, OutputError),
     // input derivation
-    #[error("Unable to parse input derivation path {0}: {1}.")]
+    #[error("unable to parse input derivation path {0}: {1}")]
     InvalidInputDerivationPath(String, ParseStorePathError),
-    #[error("Input Derivation {0} doesn't end with .drv.")]
+    #[error("input derivation {0} doesn't end with .drv")]
     InvalidInputDerivationPrefix(String),
-    #[error("Input Derivation {0} output names are empty.")]
+    #[error("input derivation {0} output names are empty")]
     EmptyInputDerivationOutputNames(String),
-    #[error("Input Derivation {0} output name {1} is invalid.")]
+    #[error("input derivation {0} output name {1} is invalid")]
     InvalidInputDerivationOutputName(String, String),
 
     // input sources
-    #[error("Unable to parse input sources path {0}: {1}.")]
+    #[error("unable to parse input sources path {0}: {1}")]
     InvalidInputSourcesPath(String, ParseStorePathError),
 
     // platform
-    #[error("Invalid platform field: {0}")]
+    #[error("invalid platform field: {0}")]
     InvalidPlatform(String),
 
     // builder
-    #[error("Invalid builder field: {0}")]
+    #[error("invalid builder field: {0}")]
     InvalidBuilder(String),
 
     // environment
-    #[error("Invalid environment key {0}")]
+    #[error("invalid environment key {0}")]
     InvalidEnvironmentKey(String),
 }