diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-26 07:48:30 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-26 12:26:47 +0000 |
| commit | a0593e3aa9b19b9ca3c3881cbe0d9d207fe46d2c (patch) | |
| tree | 3482e7c558eff09cc91604ad6ddcd02cf2c94699 /tests/ngit_pull.rs | |
| parent | 1332c625b75fce616e06b415c99a068bc45c8210 (diff) | |
refactor: err msgs 'cannot' > 'failed to'
in nearly all cases 'cannot' was used when an action was tried and
failed. 'failed to' is strictly better because:
* just because the action didn't work that time doesnt mean it
cannot work
* it is better at drawing the users attention to a problem
Diffstat (limited to 'tests/ngit_pull.rs')
| -rw-r--r-- | tests/ngit_pull.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ngit_pull.rs b/tests/ngit_pull.rs index 6637859..2fb9229 100644 --- a/tests/ngit_pull.rs +++ b/tests/ngit_pull.rs | |||
| @@ -96,7 +96,9 @@ mod when_branch_doesnt_exist { | |||
| 96 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["pull"]); | 96 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["pull"]); |
| 97 | p.expect("fetching updates...\r\n")?; | 97 | p.expect("fetching updates...\r\n")?; |
| 98 | p.expect_eventually("\r\n")?; // some updates listed here | 98 | p.expect_eventually("\r\n")?; // some updates listed here |
| 99 | p.expect("Error: cannot find proposal that matches the current branch name\r\n")?; | 99 | p.expect( |
| 100 | "Error: failed to find proposal that matches the current branch name\r\n", | ||
| 101 | )?; | ||
| 100 | 102 | ||
| 101 | p.expect_end()?; | 103 | p.expect_end()?; |
| 102 | 104 | ||