From 520fb61230f1eca9bb3dceacfc7229fb24758647 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Mon, 5 Jun 2023 17:05:17 +0200 Subject: [PATCH] cli: Fix another issue with unspecified editor This commit includes a fix for another occurrence of the missing `EDITOR` variable. This time, it was inside the `rad edit` command. The fix is trivial, as it simply returns the error to the caller. Co-Developed-by: Slack Coder Signed-off-by: Vincenzo Palazzo --- radicle-cli/src/commands/edit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-cli/src/commands/edit.rs b/radicle-cli/src/commands/edit.rs index cf0e6f5a..2e8e8d39 100644 --- a/radicle-cli/src/commands/edit.rs +++ b/radicle-cli/src/commands/edit.rs @@ -71,8 +71,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { let repo = storage.repository(id)?; let payload = serde_json::to_string_pretty(&project.payload)?; - match term::Editor::new().extension("json").edit(payload) { - Ok(Some(updated_payload)) => { + match term::Editor::new().extension("json").edit(payload)? { + Some(updated_payload) => { project.payload = serde_json::from_str(&updated_payload)?; project.sign(&signer).and_then(|(_, sig)| { project.update(