diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-02 07:20:05 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-02 07:20:05 +0000 |
| commit | a6a1eebda0ab5e8b34e97799ff7b57ef194261c7 (patch) | |
| tree | e1d5290366a17c7f1345288b2d6bfb6b998e09a8 /src/lib/client.rs | |
| parent | d482eb8f33b571c56ca3e3fa4ae05d6cd8069569 (diff) | |
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.
Diffstat (limited to 'src/lib/client.rs')
| -rw-r--r-- | src/lib/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
| 855 | let repo_ref = RepoRef::try_from(( | 855 | let repo_ref = RepoRef::try_from(( |
| 856 | repo_events | 856 | repo_events |
| 857 | .first() | 857 | .first() |
| 858 | .context("no repo announcement event found at specified coordinates")? | 858 | .context("no repo announcement event found at specified coordinates. if you are the repository maintainer consider running `ngit init` to create one")? |
| 859 | .clone(), | 859 | .clone(), |
| 860 | repo_coordinates | 860 | repo_coordinates |
| 861 | .iter() | 861 | .iter() |