From a0593e3aa9b19b9ca3c3881cbe0d9d207fe46d2c Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 26 Nov 2024 07:48:30 +0000 Subject: 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 --- src/lib/git/nostr_url.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/git/nostr_url.rs') diff --git a/src/lib/git/nostr_url.rs b/src/lib/git/nostr_url.rs index 42b0ac9..b310782 100644 --- a/src/lib/git/nostr_url.rs +++ b/src/lib/git/nostr_url.rs @@ -308,7 +308,7 @@ impl CloneUrl { // Set the port if present if let Some(port) = self.port { url.set_port(Some(port)) - .map_err(|_| anyhow!("cannot add port"))?; + .map_err(|_| anyhow!("failed to add port"))?; } // Set the query parameters if present -- cgit v1.2.3