diff --git a/src/error.rs b/src/error.rs index 377d1f5..9b68ed0 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,6 +14,4 @@ pub enum FlakeCheckerError { Render(#[from] handlebars::RenderError), #[error("handlebars template error: {0}")] Template(#[from] Box), - #[error("invalid flake.lock: {0}")] - Invalid(String), } diff --git a/src/flake.rs b/src/flake.rs index b1e9f30..983579d 100644 --- a/src/flake.rs +++ b/src/flake.rs @@ -65,12 +65,11 @@ fn nixpkgs_deps( .collect(); if !missing.is_empty() { - let error_msg = format!( + println!( "no nixpkgs dependency found for specified {}: {}", if missing.len() > 1 { "keys" } else { "key" }, missing.join(", ") ); - return Err(FlakeCheckerError::Invalid(error_msg)); } Ok(deps)