Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
bin/patch: Do not panic if repository cannot be found
Matthias Beyer committed 4 months ago
commit dbe88235236ec0fb628f4e081eb399b7990f0546
parent 47cba58
1 file changed +1 -1
modified bin/commands/patch.rs
@@ -382,7 +382,7 @@ mod interface {
        rid: RepoId,
        patch_id: PatchId,
    ) -> anyhow::Result<()> {
-
        let repo = profile.storage.repository(rid).unwrap();
+
        let repo = profile.storage.repository(rid)?;
        let signer = terminal::signer(&profile)?;

        let patch = patch::find(&profile, &repo, &patch_id)?