Skip to content

Commit

Permalink
missing input deps is a println!, not fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
colemickens committed Jun 21, 2024
1 parent 5e203b8 commit 1d663bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d663bb

Please sign in to comment.