empty-descriptions-and-dropped-worktrees #15
1 changed files with 10 additions and 3 deletions
|
|
@ -150,9 +150,16 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
|
||||||
let mut issues =
|
let mut issues =
|
||||||
entomologist::issues::Issues::new_from_dir(std::path::Path::new(issues_dir))?;
|
entomologist::issues::Issues::new_from_dir(std::path::Path::new(issues_dir))?;
|
||||||
match issues.get_mut_issue(issue_id) {
|
match issues.get_mut_issue(issue_id) {
|
||||||
Some(issue) => {
|
Some(issue) => match issue.edit_description() {
|
||||||
issue.edit_description()?;
|
Err(entomologist::issue::IssueError::EmptyDescription) => {
|
||||||
}
|
println!("aborted issue edit");
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
Ok(()) => (),
|
||||||
|
},
|
||||||
None => {
|
None => {
|
||||||
return Err(anyhow::anyhow!("issue {} not found", issue_id));
|
return Err(anyhow::anyhow!("issue {} not found", issue_id));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue