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/git_remote_nostr/main.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/git_remote_nostr/main.rs')
| -rw-r--r-- | tests/git_remote_nostr/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/git_remote_nostr/main.rs b/tests/git_remote_nostr/main.rs index f749c7f..84e66bd 100644 --- a/tests/git_remote_nostr/main.rs +++ b/tests/git_remote_nostr/main.rs | |||
| @@ -43,7 +43,7 @@ fn set_git_nostr_login_config(test_repo: &GitTestRepo) -> Result<()> { | |||
| 43 | let mut config = test_repo | 43 | let mut config = test_repo |
| 44 | .git_repo | 44 | .git_repo |
| 45 | .config() | 45 | .config() |
| 46 | .context("cannot open git config")?; | 46 | .context("failed to open git config")?; |
| 47 | config.set_str("nostr.nsec", TEST_KEY_2_NSEC)?; | 47 | config.set_str("nostr.nsec", TEST_KEY_2_NSEC)?; |
| 48 | config.set_str("nostr.npub", TEST_KEY_2_NPUB)?; | 48 | config.set_str("nostr.npub", TEST_KEY_2_NPUB)?; |
| 49 | config.set_str("user.name", "test name")?; | 49 | config.set_str("user.name", "test name")?; |