Skip to content

Commit b4498e5

Browse files
author
Niko Matsakis
committed
better error reporting when gh tool not installed
1 parent 142e501 commit b4498e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mdbook-goals/src/gh/issues.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::{
33
process::Command,
44
};
55

6+
use anyhow::Context;
67
use chrono::NaiveDate;
78
use serde::{Deserialize, Serialize};
89

@@ -149,7 +150,8 @@ pub fn list_issue_titles_in_milestone(
149150
.arg("all")
150151
.arg("--json")
151152
.arg("title,assignees,number,comments,body,state,labels")
152-
.output()?;
153+
.output()
154+
.with_context(|| format!("running github cli tool `gh`"))?;
153155

154156
let existing_issues: Vec<ExistingGithubIssueJson> = serde_json::from_slice(&output.stdout)?;
155157

0 commit comments

Comments
 (0)