FFFF chore: give a clearer message when `nurl` cannot be found by jfly · Pull Request #876 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ async fn run() -> Result<()> {
None => frontend.url()?,
};

let mut fetcher =
serde_json::from_slice(&Command::new(NURL).arg(&url).arg("-p").get_stdout().await?)
.context("failed to parse nurl output")?;
let mut fetcher = serde_json::from_slice(
&Command::new(NURL)
.arg(&url)
.arg("-p")
.get_stdout()
.await
.context("failed to run nurl")?,
)
.context("failed to parse nurl output")?;

let mut cmd = Command::new(NURL);
let mut licenses = BTreeMap::new();
Expand Down
0