diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-20 08:55:47 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-20 08:55:47 +0000 |
| commit | 33b01ba13149e8c893ec7a1877d9578c8c403a4f (patch) | |
| tree | a2e114270f4ff317d1fb29016a04b93024935e29 | |
| parent | 59e3b9cec5fa8cec400301ebaa18d5900166afbf (diff) | |
refactor: imrpove error msg
when trying to create a branch from a proposal
when the the parent commit id doesnt exist
| -rw-r--r-- | src/git.rs | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -372,7 +372,7 @@ impl RepoActions for Repo { | |||
| 372 | if let Ok(last_patch) = patches_to_apply.last().context("no patches") { | 372 | if let Ok(last_patch) = patches_to_apply.last().context("no patches") { |
| 373 | last_patch | 373 | last_patch |
| 374 | } else { | 374 | } else { |
| 375 | self.checkout(branch_name).context("latest commit in proposal doesnt connect with an existing commit. Try a git pull on master first.")?; | 375 | self.checkout(branch_name).context("the parent commit of the proposal doesnt exist in your local repoistory. Try a git pull on master first.")?; |
| 376 | return Ok(vec![]); | 376 | return Ok(vec![]); |
| 377 | }, | 377 | }, |
| 378 | "parent-commit", | 378 | "parent-commit", |