From a6a1eebda0ab5e8b34e97799ff7b57ef194261c7 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 2 Dec 2024 07:20:05 +0000 Subject: fix: repo_ref 'not found' err suggest `ngit init' if the nostr remote was created by the maintainer before `ngit init` was ran. the error is more likely to occur when a user clones a repo using the nostr remote whist the relay in the hint is down and the fallback relays dont have the announcement. or if the user is offline when they clone. --- src/lib/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/client.rs b/src/lib/client.rs index ee48c14..4b87cd8 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs @@ -855,7 +855,7 @@ pub async fn get_repo_ref_from_cache( let repo_ref = RepoRef::try_from(( repo_events .first() - .context("no repo announcement event found at specified coordinates")? + .context("no repo announcement event found at specified coordinates. if you are the repository maintainer consider running `ngit init` to create one")? .clone(), repo_coordinates .iter() -- cgit v1.2.3