Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix another issue with unspecified editor
Vincenzo Palazzo committed 2 years ago
commit 520fb61230f1eca9bb3dceacfc7229fb24758647
parent 75139a6f0279a2d282ff9ccfa3309286ce9658e9
1 file changed +2 -2
modified 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(