upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 15:26:08 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 15:26:08 +0100
commit080f2b4c234e485755a9e376f530a3c68984c5d0 (patch)
treecd9b9cb5b066947070434211138a9588bbeb5964 /src
parente882fde7d3fc7f2113196585b450f7065061abb9 (diff)
fix(remote): `push` detect ssh auth failure
adding new errors that are authentication related
Diffstat (limited to 'src')
-rw-r--r--src/bin/git_remote_nostr/utils.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs
index 1d65e3c..40fe937 100644
--- a/src/bin/git_remote_nostr/utils.rs
+++ b/src/bin/git_remote_nostr/utils.rs
@@ -297,7 +297,8 @@ pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool {
297 let error_str = error.to_string(); 297 let error_str = error.to_string();
298 for s in [ 298 for s in [
299 "no ssh keys found", 299 "no ssh keys found",
300 "invalid or unknown remote ssh", 300 "invalid or unknown remote ssh hostkey",
301 "all authentication attempts failed",
301 "Permission to", 302 "Permission to",
302 "Repository not found", 303 "Repository not found",
303 ] { 304 ] {