From dbe88235236ec0fb628f4e081eb399b7990f0546 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Aug 2025 10:33:38 +0200 Subject: [PATCH] bin/patch: Do not panic if repository cannot be found Signed-off-by: Matthias Beyer --- bin/commands/patch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/commands/patch.rs b/bin/commands/patch.rs index 889045d6..59258fd9 100644 --- a/bin/commands/patch.rs +++ b/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)?