From 5fa60e6bfc483a96bf4e3d21aea65b20668f3bee Mon Sep 17 00:00:00 2001 From: cy Date: Wed, 2 Apr 2025 23:50:59 -0400 Subject: [PATCH] better error msg when no derivations --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0050392..9a0562d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,8 @@ impl PathInfo { .await .expect("path-info failed"); - let path_infos: Vec = serde_json::from_slice(&path_infos.stdout).unwrap(); + let path_infos: Vec = serde_json::from_slice(&path_infos.stdout) + .expect("no derivations found for this package"); debug!("PathInfo's from nix path-info: {:#?}", path_infos); path_infos }